Xtemplate - предупреждение Strict Standards

lantastic

Новичок
Xtemplate - предупреждение Strict Standards

Вылетает следующее предупреждение, когда пробую примеры из релиза XTemplate

Код:
Strict Standards: Redefining already defined constructor for class XTemplate in C:\Www\xtpl\xtemplate.class.php on line 334
Смотрю, в коде XTemplate два конструктора, ругается на второй:

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');
	}
 

lantastic

Новичок
ага, просто удивляет почему в релизе два оставляют? может как-то по другому обыгрывается эта ошибка?
 

nerezus

Вселенский отказник
lantastic а зачем он вам нужен?
Я бы просто забыл про его существование.

Попробуйте шаблонизатор PHP ;)
 
Сверху