Re: PHP5 and HTML_Template_IT
| From: | Mark Wiesemann | Date: | Wed, 27 Jun 2007 16:17:15 +0000 |
| Subject: | Re: PHP5 and HTML_Template_IT | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27582@lists.php.net to get a copy of this message | ||
Hi Martin,
Martin Marques wrote:
> I'm changing some PHP scripts to be 100% PHP5 complaint, but when
> looking at IT.php, I cant see the PHP5 __construct() method.
This package is PHP 4 compatible. Therefore, it has this constructor:
function HTML_Template_IT($root = '', $options = null)
> Would it be a problem to have something like this?
>
> class My_HTML_Template extends HTML_Template_IT {
>
> function __construct($html_dir=""){
> parent::__construct($html_dir);
> }
> }
Yes, it would be a problem because there is no such method in the parent
class.
Regards,
Mark
--
http://www.markwiesemann.eu