lantastic
Новичок
Xtemplate - предупреждение Strict Standards
Вылетает следующее предупреждение, когда пробую примеры из релиза XTemplate
Смотрю, в коде XTemplate два конструктора, ругается на второй:
Вылетает следующее предупреждение, когда пробую примеры из релиза XTemplate
Код:
Strict Standards: Redefining already defined constructor for class XTemplate in C:\Www\xtpl\xtemplate.class.php on line 334
PHP:
/**
* PHP 5 Constructor - Instantiate the object
*
* @param string $file Template file to work on
* @param string/array $tpldir Location of template files (useful for keeping files outside web server root)
* @param array $files Filenames lookup
* @param string $mainblock Name of main block in the template
* @param boolean $autosetup If true, run setup() as part of constuctor
* @return XTemplate
*/
public function __construct($file, $tpldir = '', $files = null, $mainblock = 'main', $autosetup = true) {
$this->restart($file, $tpldir, $files, $mainblock, $autosetup, $this->tag_start_delim, $this->tag_end_delim);
}
/**
* PHP 4 Constructor - Instantiate the object
*
* @deprecated Use PHP 5 constructor instead
* @param string $file Template file to work on
* @param string/array $tpldir Location of template files (useful for keeping files outside web server root)
* @param array $files Filenames lookup
* @param string $mainblock Name of main block in the template
* @param boolean $autosetup If true, run setup() as part of constuctor
* @return XTemplate
*/
public function XTemplate ($file, $tpldir = '', $files = null, $mainblock = 'main', $autosetup = true) {
assert('Deprecated - use PHP 5 constructor');
}

