Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
| <?php | |
| /* This script generates a mapping of factory methods/parameters to the resulting class | |
| * names in such a way that PhpStorm 6.0.1 can use for autocompletion and chaining. | |
| * | |
| * Example: | |
| * cd [magento root] | |
| * php ~/makePhpstormMap.php > .phpstorm.meta.php | |
| * | |
| */ |
| mkdir demo | |
| cd demo | |
| wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz | |
| wget http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz | |
| tar -zxvf magento-1.8.1.0.tar.gz | |
| tar -zxvf magento-sample-data-1.6.1.0.tar.gz | |
| mv magento-sample-data-1.6.1.0/media/* magento/media/ | |
| mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql magento/data.sql | |
| mv magento/* magento/.htaccess . | |
| chmod o+w var var/.htaccess app/etc |
| diff -qrbB magento_folder client_folder |
| //The code is from http://www.mcgarvie.net/2009/07/17/programming/php/php-generatecreate-strong-passwords-uuid-random-string made by Brian M McGarvie/ | |
| /** | |
| Perfect for: PASSWORD GENERATION | |
| Options: variable length | |
| generateRandStr(8) | |
| result: 4sRBfahW | |
| **/ | |
| <?php |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE codetemplates PUBLIC "-//NetBeans//DTD Editor Code Templates settings 1.0//EN" "http://www.netbeans.org/dtds/EditorCodeTemplates-1_0.dtd"> | |
| <codetemplates> | |
| <codetemplate abbreviation="gsc" xml:space="preserve"> | |
| <code><![CDATA[Mage::getStoreConfig('${cursor}')]]></code> | |
| </codetemplate> | |
| <codetemplate abbreviation="model" xml:space="preserve"> | |
| <code><![CDATA[Mage::getModel('${cursor}')]]></code> | |
| </codetemplate> | |
| <codetemplate abbreviation="single" xml:space="preserve"> |
| Get Ready for Magento Certified Developer Exam. Magento Codepool | |
| http://blog.belvg.com/magento-certification-magento-codepool.html | |
| Get Ready for Magento Certified Developer Exam. Magento Module Structure. | |
| http://blog.belvg.com/magento-certification-module-structure.html | |
| Get Ready for Magento Certified Developer Exam. The Main Magento Design Areas and More… | |
| http://blog.belvg.com/get-ready-for-magento-certified-developer-exam-the-main-magento-design-areas-and-more.html | |
| Get Ready for Magento Certified Developer Exam. Class Naming Conventions and Their Relationship with the Autoloader |
| Grab the 'PHP Remote Debugging Client' (the pre-complied xdebug binary for OSX) from here: | |
| http://code.activestate.com/komodo/remotedebugging/ | |
| Unzip it, find the folder that corresponds to the version of PHP you want to install it for and copy the xdebug.so file from there into your php extensions folder in the relevant PHP version directory. E.g. for PHP 5.4: | |
| /Applications/AMPSS/php-5.4/lib/extensions/ext/ | |
| Now open PHP.ini in a text editor: | |
| /Applications/AMPSS/php-5.4/etc/php.ini |
| <?php | |
| /* Set up: */ | |
| class Namespace_Module_Block_Adminhtml_News_Edit_Tab_Linking { | |
| protected function _prepareForm(){ | |
| ... | |
| $fieldSet->addField('product_categories', 'multiselect', |