Wiki

Articles in category "tips", sorted by commentsX
Displaying 101-110 of 141 result(s).

Understanding series articles

Created 3 years ago by GOshaTips0 comments – viewed 8,001 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

How to preload dropdowns in CForm

Created about a year ago by transistorTips0 comments – viewed 4,146 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 call a default layout for every module and how to work <php echo $content; ?>

Created about a year ago by Ankit ModiTips0 comments – viewed 13,015 times – ( -2 )
Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Created about a year ago by Ankit ModiTips0 comments – viewed 8,590 times – ( +3 ) – version 1.1
Hi Friends,

Multi Data Provider

Created about a year ago by Sharon LavieTips0 comments – viewed 5,801 times – ( +1 )
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

Set a menu - reusable code

Created about a year ago by KonApazTips0 comments – viewed 4,067 times – ( +1 )
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

Yiistrap TbHtml::navbarSearchForm

Created about a year ago by PatriceTips0 comments – viewed 5,249 times – version 1.1
Hi all,

Reading the doc

Created 4 years ago by zaccariaTips0 comments – viewed 6,663 times – ( +21 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

Extending CActiveForm for some form display fixes and language tweaks

Created 4 years ago by TrejderTips0 comments – viewed 13,386 times – ( +5 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

Yii behind a reverse proxy, SSL support and correct IP logging

Created 2 years ago by mrkmgTips0 comments – viewed 4,344 times – version 1.1
If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php