Smarty Error: Unable to load template file 'template//news/article.html'
- /www/wwwroot/web/www.31ba.com/SpeedPHP/Core/spView.php on line 52
47.
$this->addfuncs();
48.
$this->displayed = TRUE;
49.
if($GLOBALS['G_SP']['view']['debugging'] && SP_DEBUG)$this->engine->debugging = TRUE;
50.
$this->engine->display($tplname);
51.
} catch (Exception $e) {
52.
53.
spError( $GLOBALS['G_SP']['view']['engine_name']. ' Error: '.$e->getMessage() );
}
54.
}
55.
56.
/**
57.
* 注册视图函数
- /www/wwwroot/web/www.31ba.com/SpeedPHP/Core/spController.php on line 105
100.
*/
101.
public function display($tplname, $output = TRUE)
102.
{
103.
@ob_start();
104.
if(TRUE == $GLOBALS['G_SP']['view']['enabled']){
105.
106.
$this->v->display($tplname);
}else{
107.
extract($this->__template_vals);
108.
require($tplname);
109.
}
110.
if( TRUE != $output )return ob_get_clean();
- /www/wwwroot/web/www.31ba.com/controller/news.php on line 53
48.
$this->replaytypes = "news";
49.
$this->replaytitle = $_SESSION['userinfo']['uname']."对:".$this->title."的回复";
50.
require("include/replay_data.php");
51.
// 回复组件 end
52.
53.
54.
$this->display('template/'.$this->template_name.'/news/article.html'); // 显示模板
}
55.
// 跳转回首页
56.
}
57.
58.
// 分类管理
- /www/wwwroot/web/www.31ba.com/SpeedPHP/spFunctions.php on line 21
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
20.
// 路由并执行用户代码
21.
22.
$handle_controller->$__action();
// 控制器程序运行完毕,进行模板的自动输出
23.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
24.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
25.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
26.
$handle_controller->auto_display($__tplname);
- /www/wwwroot/web/www.31ba.com/index.php on line 58
53.
),
54.
)
55.
);
56.
require(SP_PATH."/SpeedPHP.php");
57.
import(APP_PATH.'/controller/tplbasis.php'); // 需要先载入top控制器父类
58.
spRun();