Extending HTML_Template_IT not working anymore
| From: | Martín Marqués | Date: | Tue, 06 Apr 2010 11:47:14 +0000 |
| Subject: | Extending HTML_Template_IT not working anymore | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30446@lists.php.net to get a copy of this message | ||
I have a bunch of classes that extend HTML_Template_IT which were
working great until latest upgrade on my development server to PHP 5.3
and HTML_Template_IT 1.3.0.
The problem is that blocks don't get parsed, and I think it has to do
with how my contructor is written:
class HTML_UNL EXTENDS HTML_Template_IT {
function __construct($html_dir="",$template_file=""){
// Llamamos al contructor del padre, por si las moscas
$this->HTML_Template_IT($html_dir);
if($template_file!==""){
// Cargo la plantilla
$this->loadTemplatefile($template_file,true,true);
}
}
}
Is this the right way to extend this class?
Worked great until the latest upgrades came.
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador