Articles in category "tips", sorted by date (updated)X
Displaying 111-120 of 146 result(s).

an easy way to required multi columns(At least one cannot be blank)

Updated 3 years ago by 1065227709Tips0 comments – viewed 5,327 times – ( +2 ) – version 1.1
in model add the following code:
tags: rules

Yii CDBHttpSession数据库存储session性能优化实战

Updated 3 years ago by Darwin WenTips0 comments – viewed 7,314 times – ( +1 / -1 ) – version 1.1
上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。

adding class and links to Ctreeview node

Updated 3 years ago by bingjie2680Tips2 comments – viewed 12,649 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

BaseModuleAR class with MultiActiveRecord

Updated 3 years ago by GustavoTips0 comments – viewed 7,090 times – ( +2 ) – version 1.1
MultiActiveRecord is an extension that add support for multiple database connection for your application.

Search method of a model for filters when using dates - unixtimestamp in database

Updated 3 years ago by jwernerTips1 comment – viewed 24,304 times – ( +10 ) – version 1.1
I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

Using MBMenu and Rights to automatically create menu item for your modules

Updated 3 years ago by dinhtrungTips2 comments – viewed 12,372 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

Using CJuiDialog to edit rows in a CGridView

Updated 3 years ago by Russell EnglandTips8 comments – viewed 28,976 times – ( +4 / -1 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Integrating Yii with Wordpress

Updated 3 years ago by isekreamTips5 comments – viewed 39,490 times – ( +10 / -1 ) – version 1.1
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 integration was very basic and i just used yii with its default installation site. I don;t know how it will really react with CRUD application as yet but it was fairly easy to integrate after reading the article...

Getting nulls from database instead of empty strings

Updated 3 years ago by samdarkTips2 comments – viewed 9,838 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

A simple class to use a different db for a module

Updated 3 years ago by Maurizio Domba CerinTips2 comments – viewed 14,005 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?