Wiki

Sorted by viewsX
Displaying 21-30 of 468 result(s).

CGridView: Render customized/complex datacolumns

Created about a year ago by JobloTips7 comments – viewed 57,309 times – ( +55 )
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

How to implement multiple page layouts in an application

Created 4 years ago by qiangTutorials2 comments – viewed 56,075 times – ( +23 )
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout

Add information to Yii::app()->user by extending CWebUser

Created 3 years ago by atrandafirTutorials9 comments – viewed 54,112 times – ( +27 )
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

CJuiDialog for create new model

Created 2 years ago by zaccariaTutorials37 comments – viewed 50,007 times – ( +55 )
In this tutorial we will learn how to realize a create interface using a dialog.

How to setup yiic on WAMP (XP/Vista)

Created 4 years ago by krillzipTutorials3 comments – viewed 48,978 times – ( +2 )
This page assumes that you have installed Wampserver on your MS Windows computer.

Behaviors & events

Created 3 years ago by pestaaTutorials7 comments – viewed 48,552 times – ( +39 )
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

Setting and maintaining the language in Application (i18n)

Created 4 years ago by olafureTutorials9 comments – viewed 47,930 times – ( +19 )
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

Understanding Virtual Attributes and get/set methods

Created 2 years ago by Steve FriedlTutorials16 comments – viewed 46,206 times – ( +64 )
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Getting to Understand Hierarchical RBAC Scheme

Created 2 years ago by daemonsTutorials10 comments – viewed 43,980 times – ( +50 )
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 authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Created 3 years ago by thyseusTutorials3 comments – viewed 43,646 times – ( +12 / -2 )
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.