PHP头条
热点:

thinkphpcreatefalse求解解决方法


thinkphp create false求解
如题,以下是我的代码

class TestAction extends Action{ 
public function index()
{
$test = D('Test');
var_dump($test->create());
    }



class TestModel extends Model{
    protected $_validate=array(
        array('title','','名字必填哦!','1'),
        array('content','','帐号名称已经存在!',0,'unique',1),
    );
}

数据库

------解决方案--------------------
你是要判断数据是否有值吗
?

www.phpzy.comtrue/phprm/5955.htmlTechArticlethinkphpcreatefalse求解解决方法 thinkphp create false求解 如题,以下是我的代码 classTestActionextendsAction{ publicfunctionindex() { $test=D('Test'); var_dump($test->create()); } } classTestModelextendsModel{ protected$_va...

相关文章

相关频道:

PHP之友评论

今天推荐