Wiki

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

How to automate timestamps in ActiveRecord models

Created 4 years ago by dalipTutorials7 comments – viewed 60,140 times – ( +25 )
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

How to implement multiple page layouts in an application

Created 4 years ago by qiangTutorials2 comments – viewed 58,277 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 56,918 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 zaccariaTutorials40 comments – viewed 51,844 times – ( +57 )
In this tutorial we will learn how to realize a create interface using a dialog.

Behaviors & events

Created 3 years ago by pestaaTutorials7 comments – viewed 51,150 times – ( +40 )
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.

How to setup yiic on WAMP (XP/Vista)

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

Setting and maintaining the language in Application (i18n)

Created 4 years ago by olafureTutorials9 comments – viewed 49,709 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 48,809 times – ( +65 )
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 daemonsTutorials11 comments – viewed 46,238 times – ( +51 )
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.

Url: hide index.php

Created about a year ago by HermansHow-tos13 comments – viewed 46,145 times – ( +18 )
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.