Wiki

Articles tagged with "table", sorted by commentsX
Displaying 1-6 of 6 result(s).

Como trasponer una lista creada con CHtml::checkBoxList

Created 3 years ago by rdjteamTips3 comments – viewed 10,022 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:

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created about a year ago by Maug LeeHow-tos2 comments – viewed 24,700 times – ( +8 ) – version 1.1
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

How to change Migration Table name and use defined prefix.

Created 2 years ago by JorgeeHow-tos1 comment – viewed 6,892 times – ( +3 ) – version 1.1
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

Generate CTreeview from database table and update a model

Created 11 months ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 2,957 times – ( +1 ) – version 1.1
Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)

Insert a model record using CGridview

Created 11 months ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 4,947 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Insert data from database to another database table

Created 11 months ago by Kostas Apazidis (KonApaz)Tutorials0 comments – viewed 2,664 times – ( +1 ) – version 1.1
According to below wiki we could migrate database schema to another database