Re: [SMARTY] {include} problem

From: Date: Tue, 18 Feb 2003 05:02:38 +0000
Subject: Re: [SMARTY] {include} problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7811@lists.php.net to get a copy of this message
That happened to work, variable catenation has never been supported. Do this instead: "$template/$page.tpl" Steve wrote:
This worked before I updated to latest cvs: {include file=$template."/".$page.".tpl"} $template and $page are set and they work. This is broken after updating to latest cvs. Error is: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/bw/templates_c/%%157/%%1572547627/index.tpl.php on line 145 Applicable line is complied template is: <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include($this->_tpl_vars['template']."."/".".$this->_tpl_vars ['page'].".".tpl"", array()); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); Thanks, Steve


« previous php.smarty.general (#7811) next »