Re: [SMARTY] I have a problem with smarty under Linux ...

From: Date: Mon, 05 May 2003 21:28:33 +0000
Subject: Re: [SMARTY] I have a problem with smarty under Linux ...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9476@lists.php.net to get a copy of this message
[snip] > second: > The vars are not parsed by example: > > http://localhost/test/index.php?centermodule=imggallery&cat=1 > > the vars > ..... > $smarty->assign("CENTERMODULE",$centermodule); > $smarty->assign("CAT",$cat); > $smarty->display("img.tpl"); > ..... > img.tpl > ..... > {$CENTERMODULE} have nothing > {$CAT} have nothing > ..... that's not a Smarty issue read http://www.php.net/manual/en/language.variables.predefined.php carefully... you should always use superglobals, read the warning on the page by the way, you may also do {$smarty.request.centermodule} etc, but I'd recommend that you validate EVERYTHING before you use it. NEVER trust user input. validate both $centermodule and $cat. > From now on.... > > Under Linux I Have installed Apache 2.0.40 and PHP 5.0 and Get this message AFAIK, Smarty doesn't run under PHP5 Regards, David > > Parse error: parse error in /usr/local/apache2/htdocs/test/Smarty/libs/Smarty.class.php > on line 1311 > > Fatal error: Class 'smarty' not found in /usr/local/apache2/htdocs/test/index.php > on line 6 > > > 1306........ > 1307........ > 1308........ > 1309 if($_compile_config) { > 1310 if(!is_object($this->_conf_obj)) { > 1311 require_once SMARTY_DIR . $this->config_class . '.class.php'; > 1312 $this->_conf_obj = new $this->config_class($_config_dir); > 1313 $this->_conf_obj->overwrite = $this->config_overwrite; > 1314 $this->_conf_obj->booleanize = $this->config_booleanize; > 1315 $this->_conf_obj->read_hidden = $this->config_read_hidden; > 1316........ > 1317........ > 1318........ > > > What I can make ?? > > Specially under Linux ??? > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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