Wiki articles

Showing 821-823 of 823 items.

How to setup yiic on WAMP (XP/Vista)

Created 15 years ago by krillzip, updated 12 years ago by Yang He.

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

2 0
5 followers
Viewed: 94 936 times
Version: 1.1
Category: Tutorials
Tags:

How to upload a file using a model

Created 15 years ago by qiang, updated 9 years ago by 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: 519 518 times
Version: 1.1
Category: Tutorials

How to customize the error message of a validation rule

Created 15 years ago by qiang, updated 12 years ago by 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: 145 676 times
Version: 1.1
Category: Tutorials
Tags: