Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 91-100 of 141 result(s).

Use application on production/development environment without making changes

Updated 3 years ago by ifdatticTips3 comments – viewed 32,353 times – ( +8 / -1 ) – version 1.1
I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

How to ensure unicity to url

Updated 3 years ago by marcovtwoutTips3 comments – viewed 10,776 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

Managing constants easily

Updated 3 years ago by briiC.lvTips4 comments – viewed 10,979 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

Using events with CAction classes

Updated 3 years ago by 张 迪Tips0 comments – viewed 11,328 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.

Yii Security-extended guide

Updated 3 years ago by bingjie2680Tips11 comments – viewed 15,419 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

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

Como trasponer una lista creada con CHtml::checkBoxList

Updated 3 years ago by rdjteamTips3 comments – viewed 9,327 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

Updated 3 years ago by Steve FriedlTips11 comments – viewed 45,915 times – ( +26 / -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

Updated 3 years ago by RusAlexTips4 comments – viewed 7,255 times – ( +4 ) – version 1.1
Using a git submodule command in your yii project

Send asset folder path to a javascript of a widget

Updated 3 years ago by sensorarioTips4 comments – viewed 17,180 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: