![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
yii
ball球
这个作者很懒,什么都没留下…
展开
-
yii application development cookbook 第二章 Using base controller
使用基本的Controller (Using base controller) 在很多框架的手册中都会对base controller的扩展进行描述。但在yii手册中并没有相应的内容,因为你可以用许多方式很容易的对base controller进行扩展。尽管如此,我们还是来说说base controller,但还是非常有用的。 准备工作(Getting ready) 使用yiic webap翻译 2012-09-28 22:08:05 · 1589 阅读 · 0 评论 -
如何在yii的controller中调用外部action
问题: 在yii中,一个controller会包含若干个action。有时为了重用或代码管理等目的,我们希望这些action可以单独定义成一个类,然后在controller中使用。那么在yii中要如何实现呢? 假设我们有这样一个例子 TestController.php,文件位于wwwroot/blog/controllers/,wwwroot对应http://www.example.com原创 2012-09-29 11:54:47 · 19586 阅读 · 2 评论 -
在yii中使用memcache
yii中可以很方便的使用memcache 一.配置 在main.php的components中加入cache配置 array( 'components'=>array( 'cache'=>array( 'class'=>'CMemCache', 'servers'=>array( arr原创 2012-10-29 17:51:13 · 15004 阅读 · 0 评论 -
yii时间控件的使用
我们的表单中经常需要用户输入时间,yii中有很方便的时间控件CJuiDatePicker可供使用,得到的效果如下: 调用方法 <?php $this->widget('zii.widgets.jui.CJuiDatePicker',array( 'language'=>'zh_cn', 'name'=>'worktime[s原创 2012-11-02 11:41:43 · 12678 阅读 · 4 评论