Girar plantilla consejos de trayectoria fuera de línea de comandos
-
16-10-2019 - |
Pregunta
Por alguna razón, sólo realizó un mysqldump de nuestra base de datos de Magento, importó en una nueva base de datos, y de repente consejos ruta de plantilla están, ¿cómo puedo desactivarlas desde la línea de comandos? O qué tabla / columna necesito para el cambio en la base de datos para desactivarlas?
Gracias!
Solución
You can turn them off by running the following query:
UPDATE core_config_data SET value = '0' WHERE path LIKE '%template_hints%';
After running the query make sure you clean the var/cache directory too when you are in the Magento root. (rm -rf var/cache/*
)
Enjoy ;)
Otros consejos
alternative is using phpStorm IDE with magicento plugin, it has very usefull tools for magento development, turn on/off path hints, clean cache is also there.
Switch some properties to true ;
class Mage_Core_Block_Template extends Mage_Core_Block_Abstract
{
...
//near the row 66-67
protected static $_showTemplateHints = true;
protected static $_showTemplateHintsBlocks = true;
...
}
If out use n98-magerun2 script from https://github.com/netz98/n98-magerun2
Run the following from website root to enable hints
n98-magerun2.phar dev:template-hints enable
And this to disable
n98-magerun2.phar dev:template-hints disable
In 2.2 you can run the command line:
php bin/magento dev:template-hints:enable
php bin/magento dev:template-hints:disable