Wiki

Articles in category "how-tos"X
Displaying 141-150 of 336 result(s).

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 10,846 times – ( +6 ) – version 1.1
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 8,761 times – version 1.1
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 Maciej Li┼╝ewskiHow-tos8 comments – viewed 10,403 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 Kostas Apazidis (KonApaz)How-tos8 comments – viewed 12,613 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-tos12 comments – viewed 20,453 times – ( +7 / -7 ) – 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-tos6 comments – viewed 17,766 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...

Popup AJAX DialogBox without any extension

Created about a year ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 14,496 times – ( +7 / -1 )
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

multiple CActiveDataProviders in one CGridView

Created about a year ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 14,079 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Activate captcha after unsuccessful login attempts

Created about a year ago by Kostas Apazidis (KonApaz)How-tos21 comments – viewed 14,876 times – ( +11 / -1 ) – version 1.1
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

model rules depended by user roles-permissions

Created about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 6,894 times – ( +3 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not