#1 yuyu775
- D:\AppServ\www\yh\SpeedPHP\Core\spController.php on line 125
public function __call($name, $args)
121.
{
122.
if(in_array($name, $GLOBALS['G_SP']["auto_load_controller"])){
123.
return spClass($name)->__input($args);
124.
}elseif(!method_exists( $this, $name )){
125. spError("方法 {$name}未定义!");
126.
}
127.
}
128.
129.
130.
* 获取视图对象
- D:\AppServ\www\yh\modules\admin\article.php on line 21
'source' => $this -> spArgs('source'),
17.
'is_up' => $this -> spArgs('is_up'),
18.
'url' => $this -> spArgs('url'),
19.
'addtime' => $addtime,
20.
);
21. $article->create($add);
22. $this -> display("admin/article_add.html");
23.
}
24.
}
25. ?>
- D:\AppServ\www\yh\SpeedPHP\SpeedPHP.php on line 89
eval($GLOBALS['G_SP']["dispatcher_error"]);
85.
exit;
86.
}
87.
88.
// 执行用户代码
89. $handle_controller->$__action();
90.
91.
// 控制器程序运行完毕,进行模板的自动输出
92.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
93. $__tplname = $GLOBALS['G_SP']['view']['config']['template_dir']."/".
94. $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
- D:\AppServ\www\yh\admin.php on line 12
// 当前模块附加的配置
8. $spConfig['controller_path'] = APP_PATH.'/modules/'.basename(__FILE__,".php");
9. $spConfig['model_path'] = APP_PATH.'/lib/admin';
10.
11.
// 载入SpeedPHP框架
12.
require(SP_PATH."/SpeedPHP.php");
上面是报错信息
一下是我的控制层
/**
* 文章功能控制器
*/
class article extends spController
{
// 添加文章
function add(){
$article = spClass("article");
$addtime = date("Y-m-d H:i:s");
$add = array(
'title' => $this -> spArgs('title'),
'content' => $this -> spArgs('content'),
'art_type' => $this -> spArgs('art_type'),
'source' => $this -> spArgs('source'),
'is_up' => $this -> spArgs('is_up'),
'url' => $this -> spArgs('url'),
'addtime' => $addtime,
);
$article->create($add);
$this -> display("admin/article_add.html");
}
}
2010-05-18 10:38:35