You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB
PHTML

5 years ago
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com>
// +----------------------------------------------------------------------
namespace Admin\Model;
use Think\Model;
/**
* 导航模型
* @author 麦当苗儿 <zuojiazi@vip.qq.com>
*/
class ChannelModel extends Model {
protected $_validate = array(
array('title', 'require', '标题不能为空', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
array('url', 'require', '导航链接不能为空', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
);
protected $_auto = array(
array('create_time', NOW_TIME, self::MODEL_INSERT),
array('update_time', NOW_TIME, self::MODEL_BOTH),
array('status', '1', self::MODEL_INSERT),
);
}