Re: [SMARTY] Problems running documentation examples

From: Date: Fri, 11 Apr 2003 19:56:03 +0000
Subject: Re: [SMARTY] Problems running documentation examples
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9219@lists.php.net to get a copy of this message
Taken from page 54 Smarty Documentation--------------> index.php require 'libs/Smarty.class.php'; $smarty = new Smarty; $smarty->assign('cust_ids', array(1000,1001,1002,1003)); $smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','CHarlie Brown')); $smarty->assign('customer_id', 1001); $smarty->display('index.tpl'); index.tpl: {html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"} index.tpl.php <?php /* Smarty version 2.5.0, created on 2003-04-11 15:55:30 compiled from index.tpl */ ?> <?php $this->_load_plugins(array( array(function, html_checkboxes, index.tpl, 1, false),)); ?><?php echo $this->_plugins[function][html_checkboxes][0](array(values => $this->_tpl_vars[cust_ids],checked => $this->_tpl_vars[customer_id],output => $this->_tpl_vars[cust_names],separator => "<br />"), $this) ; ?> "Monte Ohrt" <monte@ispi.net> escribió en el mensaje news:1050088236.8259.43.camel@lena.ispi.prv... Show us the template and the compiled template source. On Fri, 2003-04-11 at 13:46, Alexander Guevara wrote: > Im new on this about the templates etc etc.. and im reading the reference > manual found in the Smarty website.... > > > Results that while i read i use the examples shown in the maneal but i have > received a lot of errors tryin tho run them. For example i have tried to run > the EXAMPLE8-6 html_checkboxes and i receive this error: > > Parse error: parse error, expecting `')'' in C:\Archivos de programa\Apache > Group\Apache2\htdocs\alex\plantillas\templates_c\%%117\%%1172603085\index.tp > l.php on line 4 > > > So why is this error shown=????.. thanks > > Im using latest version of Smarty (2.50) -- Monte Ohrt <monte@ispi.net>

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