Здравствуйте! Такая проблема у меня. Изучаю книжку - создание интернет магазина автора Кристиана Дари. Там есть класс, который наследует SMARTY и меняет в конструкторе пути к папкам temlates и config. Использовал конструкцию как в книжке.
// Reference Smarty library
require_once SMARTY_DIR . 'Smarty.class.php';
/* Class that extends Smarty, used to process and display Smarty
files */
class Application extends Smarty
{
// Class constructor
public function __construct()
{
// Call Smarty's constructor
parent::Smarty();
// Change the default template directories
$this->template_dir = TEMPLATE_DIR;
$this->compile_dir = COMPILE_DIR;
$this->config_dir = CONFIG_DIR;
}
}
Ругается на строку parent::Smarty();
Fatal error: Call to undefined method Smarty::smarty() in X:\home\localhost\www\tshirtshop\presentation\application.php on line 13
Помогите пожалуйста.