Wiki articles in category Tutorials

Showing 261-266 of 266 items.

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

Created 16 years ago by qiang qiang, updated 13 years ago by Yang He Yang He.

By default, the expression Yii::app()->user returns a [CWebUser] [application component](http://www.yiiframework.com/doc/guide/basics.application#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|CWebUser::name] property th...

21 0
28 followers
Viewed: 232 327 times
Version: 1.1
Category: Tutorials

First Yii App: CTabView

Created 16 years ago by meanpenguin meanpenguin, updated 13 years ago by Yang He Yang He.

Once you are completed with the "Creating First Yii Application", the following can be done.

0 2
1 follower
Viewed: 29 931 times
Version: 1.1
Category: Tutorials
Tags:

How to setup FCKeditor

Created 16 years ago by krillzip krillzip, updated 13 years ago by Dark-Sun Dark-Sun.

Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.

3 1
5 followers
Viewed: 35 041 times
Version: 1.1
Category: Tutorials
Tags:

How to setup yiic on WAMP (XP/Vista)

Created 16 years ago by krillzip krillzip, updated 13 years ago by Yang He Yang He.

This page assumes that you have installed Wampserver on your MS Windows computer.

2 0
5 followers
Viewed: 98 106 times
Version: 1.1
Category: Tutorials
Tags:

How to upload a file using a model

Created 16 years ago by qiang qiang, updated 10 years ago by samdark samdark.

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.

66 4
64 followers
Viewed: 524 910 times
Version: 1.1
Category: Tutorials

How to customize the error message of a validation rule

Created 16 years ago by qiang qiang, updated 13 years ago by Yang He Yang He.

Validators extending from [CValidator] all have a property named [message|CValidator::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:

13 0
14 followers
Viewed: 148 648 times
Version: 1.1
Category: Tutorials
Tags: