We are going to deploy the new yiiframework.com website on March 23, 2018 from 8:00 to 12:00 UTC.
Website and Yii documentation will not be available in this time frame. Check the news for more details.


Displaying 781-786 of 786 result(s).

How to add more information to Yii::app()->user

Created 9 years ago by qiangTutorials2 comments – viewed 182,796 times – ( +31 / -1 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.

First Yii App: CTabView

Created 9 years ago by meanpenguinTutorials1 comment – viewed 21,299 times – ( -3 ) – version 1.1
Once you are completed with the "Creating First Yii Application", the following can be done.

How to setup FCKeditor

Created 9 years ago by krillzipTutorials2 comments – viewed 20,550 times – ( +3 / -2 ) – version 1.1
To start with you need to download the latest stable release of FCKeditor. Extract the downloaded file and place the fckeditor/ folder in your applications webroot directory.

How to setup yiic on WAMP (XP/Vista)

Created 9 years ago by krillzipTutorials3 comments – viewed 80,876 times – ( +3 / -1 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

How to upload a file using a model

Created 9 years ago by qiangTutorials7 comments – viewed 455,867 times – ( +86 / -7 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

How to customize the error message of a validation rule

Created 9 years ago by qiangTutorials4 comments – viewed 107,283 times – ( +18 / -2 ) – version 1.1
Validators extending from CValidator all have a property named message. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one: