This module allows you to change the template pages cms backoffice defined by a particular template when we load the page through an ajax request
Create this directory structure in local pool : Webaki
- etc -- config.xml
- Model -- Observer.php
| <?php | |
| // Ignore errors | |
| libxml_use_internal_errors(true) AND libxml_clear_errors(); | |
| // http://stackoverflow.com/q/10237238/99923 | |
| // http://stackoverflow.com/q/12034235/99923 | |
| // http://stackoverflow.com/q/8218230/99923 | |
| // original input (unknown encoding) |
| ###################### | |
| # Magento .gitignore # | |
| ###################### | |
| # Magento Core unnecessary files # | |
| ################################## | |
| /errors/local.xml | |
| /index.php | |
| /install.php | |
| /mage |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <templateSet group="PHP"> | |
| <template name="help" value="Mage::helper('$helperName$')" description="Mage::helper" toReformat="false" toShortenFQNames="true"> | |
| <variable name="helperName" expression="" defaultValue="core" alwaysStopAt="true" /> | |
| <context> | |
| <option name="HTML_TEXT" value="false" /> | |
| <option name="HTML" value="false" /> | |
| <option name="XSL_TEXT" value="false" /> | |
| <option name="XML" value="false" /> | |
| <option name="CSS" value="false" /> |
| <?php | |
| class Klasse { | |
| public static function switchIndexingOff() { | |
| $processes = Mage::getSingleton('index/indexer')->getProcessesCollection(); | |
| $processes->walk('setMode', array(Mage_Index_Model_Process::MODE_MANUAL)); | |
| $processes->walk('save'); | |
| } | |
| public static function rebuildIndices() { | |
| $processes = Mage::getSingleton('index/indexer')->getProcessesCollection(); |
These set of scripts are for Magento 1. For Magento 2, see this Gist.