Showing 341-360 of 826 items.

Insert a multirow header in CGridView

Created 13 years ago by Peppe Peppe, updated 11 years ago by Peppe Peppe. 2 comments

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 h...

4 0
5
Viewed: 31 152 times
Version: 1.1
Category: How-tos

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: 19 755 times
Version: 1.1
Category: How-tos

How to use bizRules in standard accessControl filter

Created 13 years ago by Maciej Liżewski Maciej Liżewski, updated 12 years ago by Maciej Liżewski Maciej Liżewski. 8 comments

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.

3 0
8
Viewed: 23 795 times
Version: 1.1
Category: How-tos

Integrating ZF2 into Yii - use case demonstrated

Created 13 years ago by Boaz Boaz, updated 12 years ago by Boaz Boaz. 2 comments

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6
Viewed: 17 268 times
Version: 2.0
Category: How-tos

How to provide a fallback or mapping for translation messages?

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

Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

3 0
6
Viewed: 16 114 times
Version: 1.1
Category: How-tos