Wiki

Articles in category "how-tos"X
Displaying 101-110 of 301 result(s).

how to make a dynamic progress bar to show the percentage or status

Created about a year ago by hehbhehbHow-tos1 comment – viewed 12,423 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 about a year ago by KonApazHow-tos4 comments – viewed 8,838 times – ( +4 / -6 )
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 about a year ago by Gerhard LiebenbergHow-tos0 comments – viewed 8,874 times – ( +3 / -1 ) – version 1.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.

using editors of yiibooster - fix issues - configuration

Created about a year ago by KonApazHow-tos0 comments – viewed 4,629 times – ( +5 ) – version 1.1
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 8,107 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 about a year ago by mistrybHow-tos1 comment – viewed 6,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

How to use bizRules in standard accessControl filter

Created about a year ago by redguyHow-tos8 comments – viewed 7,594 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Generate a multi-lever array sub-category for a menu

Created about a year ago by KonApazHow-tos7 comments – viewed 9,523 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

Yii User and Rights Implementation

Created about a year ago by Rajith RHow-tos4 comments – viewed 15,538 times – ( +6 ) – version 1.1
implementing some features of yii user and rights.

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created about a year ago by VINAY Kr. SHARMAHow-tos5 comments – viewed 13,464 times – ( +5 )
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...