Qeephp
aksoft
这个作者很懒,什么都没留下…
展开
-
QEEPHP 修改 created 日期类型
Qeephp 默认自动添加的日期类型是UNIX时间戳TIMESTAMP,改成日期型的在model文件里,修改为self::AUTOFILL_DATETIME就可以了。 [code="php"] /** * 指定在数据库中创建对象时,哪些属性的值由下面指定的内容进行覆盖 * * 如果填充值为 self::AUT...原创 2010-05-18 16:48:24 · 85 阅读 · 0 评论 -
MYSQL INT日期类型按年 年月 年月日查询
mktime 生成一个开始时间和终止时间查询 [code="mysql"] select * from tbname where create_time between 123123 and 345345 [/code]原创 2010-05-18 17:25:30 · 370 阅读 · 0 评论 -
QEEPHP 返回 JSON类型数据集合
[code="php"] // 构造查询对象 $select = Article::find()->limitPage($page, 5)->all()->asArray()->query(); dump(json_encode($select)); [/code]原创 2010-05-20 14:27:19 · 148 阅读 · 0 评论 -
QEEPHP 搜索分页传值
controller里: [code="php"] $key = $this->_context->get("key"); //搜索列名 $th = $this->_context->get("th"); $select = Article::find("$th like ?", '%'.$key.'%')->limitPage($page, 1);[/code] view里:.原创 2010-05-20 17:50:26 · 104 阅读 · 0 评论 -
创建新应用程序的地址
总是忘。做个记录 [quote]http://127.0.0.1/qeephp/scripts/web_chili.php[/quote]原创 2010-05-21 17:29:14 · 116 阅读 · 0 评论