Wiki

Articles in category "tips"X
Displaying 41-50 of 146 result(s).

Cgridview counter column

Created about a year ago by Nisanth thulasiTips4 comments – viewed 3,912 times – ( +8 )
some times we want to show the serialNo on cgridview .

How to preload dropdowns in CForm

Created about a year ago by transistorTips0 comments – viewed 4,603 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

Created about a year ago by Ankit ModiTips1 comment – viewed 5,903 times – ( -1 )
Hi Friends,

Customizing the CMenu Widget

Created about a year ago by mistrybTips1 comment – viewed 34,132 times – ( +5 / -1 ) – version 1.1
The CMenu class provides some useful features for generating menus in your web application.

Search a file size range in CGridView

Created about a year ago by CrazyCatTips0 comments – viewed 4,172 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".

More on SSE and Yii

Created about a year ago by FirebreakerTips3 comments – viewed 4,032 times – ( +2 )
This is not actually Yii involved.

Inline views, write less

Created about a year ago by FirebreakerTips0 comments – viewed 4,412 times – ( +3 )
Sometimes writing views like

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

Created about a year ago by Luis Lobo BorobiaTips0 comments – viewed 4,308 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)

Created about a year ago by thyseusTips4 comments – viewed 10,179 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:

Debugging CActiveRecord failed save() attempts

Created about a year ago by BoazTips0 comments – viewed 12,793 times – ( +5 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.