3  * Smarty plugin to execute PHP code
 
   6  * @subpackage PluginsBlock
 
  11  * Smarty {php}{/php} block plugin
 
  13  * @param string $content contents of the block
 
  14  * @param object $template template object
 
  15  * @param boolean $ &$repeat repeat flag
 
  16  * @return string content re-formatted
 
  18 function smarty_block_php($params, $content, $template, &$repeat)
 
  20     if (!$template->allow_php_tag) {
 
  21         throw new SmartyException("{php} is deprecated, set allow_php_tag = true to enable");