Showing 101-120 of 652 items.

Building Page Specific Menus using CMenu

Created 13 years ago by mistryb mistryb, updated 11 years ago by mistryb mistryb. 1 comment

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.

0 0
3
Viewed: 20 322 times
Version: 1.1
Category: How-tos

Use CGridview to sort and filter CSqlDataProvider - when used with UNRELATED tables (or complex queries)

Created 12 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 12 years ago by Gerhard Liebenberg Gerhard Liebenberg. 6 comments

I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.

0 0
3
Viewed: 27 972 times
Version: 1.1
Category: How-tos

Yii configuration: Dynamic & User dependent

Created 12 years ago by le_top le_top, updated 12 years ago by le_top le_top. 0 comments

It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...

1 0
1
Viewed: 16 852 times
Version: 1.1
Category: How-tos

Getting to Understand Hierarchical RBAC Scheme

Created 15 years ago by daemons daemons, updated 12 years ago by rAWTAZ rAWTAZ. 15 comments

Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure a...

47 0
56
Viewed: 137 788 times
Version: 1.1
Category: Tutorials