致命错误:assign() 和 fetch()

浏览:7862 发布日期:2017/04/19 分类:求助交流 关键字: fecth assign
我是新手


<?php
namespace app\index\controller;
use thinkphp\Controller;
use think\Db;
class Index
{
public function index()
{

//print_r($_GET);



$data=Db::name('user')->find();
// print_r($data);

$this->assign('UserName',$Name);

//print_r($Name);


return $this->fecth();

}
}

问题1:致命错误: Call to undefined method app\index\controller\Index:: fetch()

问题2:
return $this->fecth();
提示
致命错误: Call to undefined method app\index\controller\Index::assign()

请高手指点,谢谢
最佳答案
评论( 相关
后面还有条评论,点击查看>>