Wiki

Sorted by viewsX
Displaying 501-510 of 777 result(s).

Como trasponer una lista creada con CHtml::checkBoxList

Created 4 years ago by rdjteamTips3 comments – viewed 12,209 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:

Advanced CTabView using CClipWidget

Created 7 years ago by krillzipTutorials1 comment – viewed 12,156 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

CGridView Date Range Without Cookies or Session (External Filtering)

Created 3 years ago by ezekielnoobHow-tos6 comments – viewed 12,129 times – ( +5 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 4 years ago by c@cbaHow-tos3 comments – viewed 12,029 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

Using sub query for doubletts

Created 4 years ago by mbTips3 comments – viewed 11,957 times – ( +2 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

Limit a CGridView field to some preset length.

Created 3 years ago by le_topHow-tos1 comment – viewed 11,943 times – ( +13 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

default csrf security and ajax post in one controller

Created 2 years ago by jasonbanTutorials3 comments – viewed 11,905 times – ( +1 / -3 ) – version 1.1
Hello Yii friends

ChromePHP for Yii

Created 5 years ago by imeheszTips0 comments – viewed 11,829 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

Display Status image on CGridView column

Created 3 years ago by Ankit ModiTutorials1 comment – viewed 11,813 times – ( +2 / -1 ) – version all
How to display status image on admin gridview.

CRUD operation in Yii framework

Created 2 years ago by Mohammad FareedTutorials4 comments – viewed 11,773 times – ( +1 / -6 ) – version all
Simple Yii Script for performing CRUD operations: