Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 61-70 of 153 result(s).

Cgridview counter column

Updated 3 years ago by trondTips5 comments – viewed 5,460 times – ( +9 )
some times we want to show the serialNo on cgridview .

How to preload dropdowns in CForm

Updated 3 years ago by transistorTips0 comments – viewed 5,956 times – ( +1 )
So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems. You got your CFormModel, CForm and the actual Form, right? Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.

How to Display tooltp(qtip) on CGridview dynamic

Updated 3 years ago by softarkTips1 comment – viewed 8,133 times – ( -1 )
Hi Friends,

Assigning dynamic roles to a user Using yii Rights module at the time of user creation and using some special advanced features of yii rights

Updated 3 years ago by Rajith RTips20 comments – viewed 40,726 times – ( +11 / -8 ) – version 1.1
After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation .

Search a file size range in CGridView

Updated 3 years ago by CrazyCatTips0 comments – viewed 5,923 times – ( +2 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".

Inline views, write less

Updated 3 years ago by FirebreakerTips0 comments – viewed 5,802 times – ( +3 )
Sometimes writing views like

More on SSE and Yii

Updated 3 years ago by FirebreakerTips3 comments – viewed 5,211 times – ( +2 )
This is not actually Yii involved.

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Updated 3 years ago by Luis Lobo BorobiaTips0 comments – viewed 5,904 times – ( +2 )
We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

Using CListView to display items next to each other (in columns)

Updated 3 years ago by thyseusTips4 comments – viewed 12,249 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Using sub query for doubletts

Updated 3 years ago by mbTips3 comments – viewed 11,948 times – ( +2 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.