Showing 121-140 of 163 items.

Customizing Yii's formatting rules (extending CFormatter)

Created 14 years ago by Haensel Haensel, updated 14 years ago by Haensel Haensel. 0 comments

CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model)...

12 0
6
Viewed: 25 534 times
Version: 1.1
Category: Tips

Display a nice exception message on ajax requests

Created 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 3 comments

in Yii versions previous to 1.1.9 exceptions was handled differently during ajax request and displayed by CApplication::displayException(). This way the exception message displayed on ajax requests could not be customized.
The message for the CGridView delete request with YII_DEBUG set to true l...

12 0
19
Viewed: 52 718 times
Version: 1.1
Category: Tips

关于Yii CHttpSession性能优化篇之源码流程分析

Created 15 years ago by Darwin Wen Darwin Wen, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

0 1
2
Viewed: 20 071 times
Version: 1.1
Category: Tips

Integrating Yii with Wordpress

Created 15 years ago by isekream isekream, updated 15 years ago by isekream isekream. 6 comments

Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integratio...

9 1
13
Viewed: 79 458 times
Version: 1.1
Category: Tips