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 | |
//Note name children with unique names | |
//<store_attachments> | |
// <store_1></store_1> | |
// | |
//</store_attachments> | |
$value = Mage::getConfig()->getNode('store_attachemnts')->asArray(); | |
// or | |
$value = Mage::getConfig()->getNode('default/store_attachemnts')->asArray(); |
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
#!/usr/bin/env bash | |
rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/cache/* | |
rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/page_cache/* |
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
#!/usr/bin/env bash | |
sudo /etc/init.d/varnish restart |
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
Available commands: | |
help Displays help for a command | |
list Lists commands | |
admin | |
admin:user:create Creates an administrator | |
admin:user:unlock Unlock Admin Account | |
cache | |
cache:clean Cleans cache type(s) | |
cache:disable Disables cache type(s) | |
cache:enable Enables cache type(s) |
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
#!/bin/bash | |
mysql -u root -proot << EOF | |
use party_local; | |
UPDATE party_local.core_config_data SET value='0' WHERE path='dev/debug/template_hints_blocks'; | |
UPDATE party_local.core_config_data SET value='0' WHERE path='dev/debug/template_hints_storefront'; | |
EOF |
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
#!/bin/bash | |
mysql -u root -proot << EOF | |
use party_local; | |
UPDATE party_local.core_config_data SET value='1' WHERE path='dev/debug/template_hints_blocks'; | |
UPDATE party_local.core_config_data SET value='1' WHERE path='dev/debug/template_hints_storefront'; | |
EOF |
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 | |
public function sendToFirebug($content) { | |
$writer = new Zend_Log_Writer_Firebug(); | |
$logger = new Zend_Log($writer); | |
$request = new Zend_Controller_Request_Http(); | |
$response = new Zend_Controller_Response_Http(); | |
$channel = Zend_Wildfire_Channel_HttpHeaders::getInstance(); | |
$channel->setRequest($request); |