Re: [SMARTY] PHP5?

From: Date: Fri, 08 Oct 2004 14:55:51 +0000
Subject: Re: [SMARTY] PHP5?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11865@lists.php.net to get a copy of this message
Yes, I have it working on it without any problem. Even I extended the Smarty class by using PHP5 sintax and it works great. Let see an example that works for me: <?PHP require_once(dirname(__FILE__) . '/config.php'); require_once(SMARTY_DIR . 'Smarty.class.php'); abstract class Page extends Smarty { private $pag_title; public function __construct() { $this->template_dir = SMARTY_TPL . 'templates/'; $this->compile_dir = SMARTY_TPL . 'templates_c/'; $this->config_dir = SMARTY_TPL . 'configs/'; $this->cache_dir = SMARTY_TPL . 'cache/'; $this->Smarty(); } abstract function showPage(); final public function setPageTitle($title) { $this->pag_title = $title; } final protected function displayTemplate($template) { $this->assign('page_title', $this->pag_title); $this->display($template); } } ?> On Fri, 8 Oct 2004 12:02:50 +0100, Nunners <webmaster@jnsolutions.co.uk> wrote: > Does Smarty work on PHP5? > > Simple question - and I think the answer is now (: >

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