【发布时间】:2018-07-21 13:33:09
【问题描述】:
<?php
require_once SMARTY_DIR . 'Smarty.class.php';
class Application extends Smarty
{
public function __construct()
{
parent::Smarty();
$this->template_dir = TEMPLATE_DIR;
$this->compile_dir = COMPILE_DIR;
$this->config_dir = CONFIG_DIR;
}
}
?>
我收到错误为致命错误:调用未定义的方法 Smarty::Smarty()
我在 php 项目文件夹中使用了 Smarty 软件
但我收到错误
我第一次在 php 中使用这个 Smarty 软件
我没有在这段代码中得到线索
【问题讨论】: