Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace Admin\Model;
|
||||
use Think\Model;
|
||||
class LinkCatModel extends Model{
|
||||
//自动验证
|
||||
//array(验证字段,验证规则,错误提示,[验证条件,附加规则,验证时间])
|
||||
protected $_validate = array(
|
||||
array('name','require','请填写名称!',1),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user