Articles in category "how-tos"X
Displaying 51-60 of 255 result(s).

Visualization tree-multi subcategories as listbox or dropdownlist

Created 8 months ago by KonApazHow-tos4 comments – viewed 6,642 times – ( +4 )
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

Multiple Database Connection : Select database based on login user id, Dynamic

Created 8 months ago by Rajith RHow-tos4 comments – viewed 8,724 times – ( +6 )
create a class file under protected\components named RActiveRecord.php


Created 8 months ago by ezekielnoobHow-tos6 comments – viewed 5,361 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

CGridView Date Range Without Cookies or Session (External Filtering)

Created 8 months ago by ezekielnoobHow-tos5 comments – viewed 4,958 times – ( +3 )
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 make a dynamic progress bar to show the percentage or status

Created 9 months ago by hehbhehbHow-tos1 comment – viewed 9,955 times – ( +5 )
Yii have a CJuiProgressBar, but it is static. If we want a dynamic progress bar to show the percentage or status, we have to do more things. I make it successfully and am glad to share it with you.

"safe" and "unsafe" Model validators (massive assignments)

Created 9 months ago by KonApazHow-tos4 comments – viewed 7,125 times – ( +4 / -2 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 9 months ago by Gerhard LiebenbergHow-tos0 comments – viewed 7,318 times – ( +3 / -1 )
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

Insert a multirow header in CGridView

Created 9 months ago by PeppeHow-tos2 comments – viewed 6,744 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.

Building Page Specific Menus using CMenu

Created 9 months ago by mistrybHow-tos1 comment – viewed 5,911 times
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu