This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$installer = $this; | |
$installer->startSetup(); | |
$installer->addAttribute('customer', 'civility', array( | |
'label' => 'Civility', | |
'visible' => true, | |
'required' => false, | |
'type' => 'int', | |
'input' => 'select', | |
'user_defined' => '1', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; | |
$encoder = new MessageDigestPasswordEncoder(); | |
echo $encoder->encodePassword('foo', ''); | |
// 5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// app/code/local/Namespace/Module/Model/Indexer/Group.php | |
class Namespace_Module_Model_Indexer_Group extends Bubble_Launcher_Model_Indexer_Abstract | |
{ | |
protected function _buildIndexData() | |
{ | |
$data = array(); | |
$collection = Mage::getModel('customer/group')->getCollection(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// app/code/community/JR/Search/Model/Resource/Catalog/Product/Collection.php | |
// Making an override would be better! | |
protected function _getParams() | |
{ | |
$store = Mage::app()->getStore($this->getStoreId()); | |
$params = array(); | |
$params['locale_code'] = $store->getConfig(Mage_Core_Model_Locale::XML_PATH_DEFAULT_LOCALE); | |
$params['filters'] = $this->_searchQueryFilters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Files *.js.gz> | |
AddType "text/javascript" .gz | |
AddEncoding gzip .gz | |
</Files> | |
<Files *.css.gz> | |
AddType "text/css" .gz | |
AddEncoding gzip .gz | |
</Files> | |
# Check to see if browser can accept gzip files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$attributeId = Mage::getResourceModel('eav/entity_attribute') | |
->getIdByCode('catalog_product', 'color'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- app/code/Namespace/Test/etc/di.xml --> | |
<config> | |
<type name="Magento\Module\Updater\SetupFactory"> | |
<param name="resourceTypes"> | |
<value> | |
<test_setup>Magento\Core\Model\Resource\Setup</test_setup> | |
</value> | |
</param> | |
</type> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Clever\BlogBundle\Entity; | |
use Doctrine\Common\Util; | |
abstract class AbstractEntity | |
{ | |
public function __construct($data = array()) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* MAGENTO_ROOT_DIR/unused.php | |
* php -f unused.php | |
*/ | |
$mageFilename = 'app/Mage.php'; | |
if (!file_exists($mageFilename)) { | |
echo $mageFilename." was not found"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Misc | |
/.buildpath | |
/.project | |
/nbproject | |
/catalog.xml | |
/sitemap.xml | |
/.settings | |
/.idea | |
/staging | |
/.modman |
OlderNewer