new model

浏览:1038 发布日期:2014/10/19 分类:求助交流
新手,不知道怎么一回事,还请教各位大神!!

<?php
namespace Home\Controller;
use Think\Controller;
class UserController extends Controller {
public function index() {
$m = new Model('User');
$arr = $m -> select(0);
$this -> assign('data',$arr);
$this -> display();
}
}
?>




报错!!!!

:(
Class 'Home\Controller\Model' not found
错误位置
FILE: E:\soft\wamp\www\thinkPHP\Application\Home\Controller\UserController.class.php  LINE: 6
最佳答案
评论( 相关
后面还有条评论,点击查看>>