![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Yii
我闪了啊
业精于勤而荒于嬉,行成于思而毁于随
展开
-
Yii时间控件的使用(包括小时、分钟、秒的插件)
<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 'model'=>$deal, 'attribute'=>'end_time', 'options' => array( 'dateFormat'=>'yy-mm-dd', //原创 2014-08-15 09:07:51 · 1757 阅读 · 0 评论 -
Yii操作cookie
设置cookie: $cookie = new CHttpCookie('mycookie','this is my cookie'); $cookie->expire = time()+60*60*24*30; //有限期30天 Yii::app()->request->cookies['mycookie']=$cookie; 读取cookie: $cookie = Yii::原创 2015-12-31 10:38:19 · 272 阅读 · 0 评论