Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 11-20 of 172 result(s).

CJuiDialog and AjaxSubmitButton

Created 3 years ago by tydeas_drTutorials18 comments – viewed 59,791 times – ( +32 / -2 )
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX

Searching and sorting by related model in CGridView

Created about a year ago by redguyTutorials49 comments – viewed 59,021 times – ( +77 )
Lets say we have two models and relation between them:

How to automate timestamps in ActiveRecord models

Created 4 years ago by dalipTutorials7 comments – viewed 57,261 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 56,027 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,067 times – ( +26 )
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 49,974 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,950 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,497 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,892 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,164 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: