Wiki

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

Yii Security-extended guide

Created 2 years ago by bingjie2680Tips11 comments – viewed 14,239 times – ( +6 / -6 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

Understanding series articles

Created 2 years ago by GOshaTips0 comments – viewed 7,742 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 35,621 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 33,378 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,584 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,275 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 40,974 times – ( +24 / -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,881 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 dckurushinTips11 comments – viewed 8,310 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 15,616 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: