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 | |
* | |
*/ |
body { | |
font: 12px verdana; | |
background-color: #5C87B2; | |
} | |
form { | |
max-width: 400px; | |
padding: 15px; | |
background-color: white; | |
} |
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 |
<?php | |
/** | |
* activeCollab configuration file | |
*/ | |
define('ROOT', '/home/example/public_html/activecollab'); | |
define('ROOT_URL', 'https://example.com'); | |
define('URL_BASE', ROOT_URL . '/'); | |
define('ASSETS_URL', ROOT_URL . '/assets'); |
<?php | |
/** | |
* Set global/skip_process_modules_updates to '1' in app/etc/local.xml and | |
* then use this script to apply updates and refresh the config cache without | |
* causing a stampede on the config cache. | |
* | |
* @author Colin Mollenhour | |
*/ | |
umask(0); | |
ini_set('memory_limit','512M'); |
<?php | |
class Namespace_Module_Helper_Data extends Mage_Core_Helper_Abstract { | |
/** | |
* Retrieve args node of observer config | |
* | |
* @param Varien_Event_Observer $observer | |
* @return array $observerArgs | |
*/ | |
public function getObserverArgs(Varien_Event_Observer $observer, $callingClass, $callingMethod) { |