Wiki

Sorted by viewsX
Displaying 411-420 of 687 result(s).

Visualization tree-multi subcategories as listbox or dropdownlist

Created about a year ago by KonApazHow-tos4 comments – viewed 8,904 times – ( +4 ) – version 1.1
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created about a year ago by Xgamer99Tips3 comments – viewed 8,883 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Debugging CActiveRecord failed save() attempts

Created about a year ago by BoazTips0 comments – viewed 8,793 times – ( +4 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

YII SaaS Multi Tenant application with single database

Created about a year ago by Rajith RTutorials5 comments – viewed 8,561 times – ( +10 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

Cambiando el diseño de JuiWidgets

Created 3 years ago by Luis Lobo BorobiaTutorials1 comment – viewed 8,555 times – version 1.1
Un aspecto del diseño de interfaces de usuario tiene que ver con la coherencia del diseño y uso de colores entre los distintos componentes de interfaz de usuario utilizados.

Como trasponer una lista creada con CHtml::checkBoxList

Created 2 years ago by rdjteamTips3 comments – viewed 8,470 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:

How to: use github for download yii, create new app, and store our modules or extensions.

Created 2 years ago by sensorarioHow-tos1 comment – viewed 8,463 times – ( +8 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 8,439 times – ( +4 )
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

A Multi-Tenant Strategy using Yii and MySQL

Created 7 months ago by JFReyesHow-tos7 comments – viewed 8,403 times – ( +8 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

Shrink Yii, help your IDE and speed up copying

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