ellisv / oxid-console

[UNMAINTAINED] OXID Console is php console application for OXID Shop. It provides an API for writing various commands. We have shipped very common for every oxid shop project commands out of the box.
MIT License
23 stars 17 forks source link

set php_handling to SMARTY_PHP_PASSTHRU in generate-commands #49

Closed alfredbez closed 7 years ago

alfredbez commented 7 years ago

From Smarty.class.php:

    /**
     * This determines how Smarty handles "<?php ... ?>" tags in templates.
     * possible values:
     * <ul>
     *  <li>SMARTY_PHP_PASSTHRU -> print tags as plain text</li>
     *  <li>SMARTY_PHP_QUOTE    -> escape tags as entities</li>
     *  <li>SMARTY_PHP_REMOVE   -> remove php tags</li>
     *  <li>SMARTY_PHP_ALLOW    -> execute php tags</li>
     * </ul>
     *
     * @var integer
     */
    var $php_handling    =  SMARTY_PHP_PASSTHRU;
smxsm commented 7 years ago

That's a nice addition, otherwise you get weird fatal syntax errors when trying to create migrations or modules if the setting is e.g. "SMARTY_PHP_ALLOW" in the shop backend, took me some hours to find the problem ...

ellisv commented 7 years ago

Thank you @alfredbez for your contribution!