Wiki

Articles in category "tips"X
Displaying 81-90 of 134 result(s).

Understanding series articles

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

CGridView: Update/create records in a CJuiDialog

Created 2 years ago by JobloTips11 comments – viewed 36,653 times – ( +14 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

CGridView: Display the full record (actionView) in a CJuiDialog

Created 2 years ago by JobloTips7 comments – viewed 34,121 times – ( +15 ) – version 1.1
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

Using events with CAction classes

Created 2 years ago by Antonio RamirezTips0 comments – viewed 10,741 times – ( +9 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Como trasponer una lista creada con CHtml::checkBoxList

Created 2 years ago by rdjteamTips3 comments – viewed 8,570 times – ( +2 ) – version 1.1
En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

Special $variables in CGridView and CListView

Created 2 years ago by Steve FriedlTips10 comments – viewed 42,245 times – ( +25 / -1 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

how to use github (un)official extension repo in your Yii project

Created 2 years ago by RusAlexTips4 comments – viewed 6,967 times – ( +4 ) – version 1.1
Using a git submodule command in your yii project

Shrink Yii, help your IDE and speed up copying

Created 2 years ago by dckurushinTips4 comments – viewed 8,426 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

Send asset folder path to a javascript of a widget

Created 2 years ago by sensorarioTips4 comments – viewed 16,051 times – ( +4 ) – version 1.1
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Avoiding duplicate script download when using Ajax calls to render different Views

Created 2 years ago by Antonio RamirezTips6 comments – viewed 18,022 times – ( +13 / -1 ) – version 1.1
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views