Wiki

Displaying 781-783 of 783 result(s).

How to setup yiic on WAMP (XP/Vista)

Created 8 years ago by krillzipTutorials3 comments – viewed 78,565 times – ( +3 ) – 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 8 years ago by qiangTutorials6 comments – viewed 431,579 times – ( +86 / -6 ) – 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 8 years ago by qiangTutorials4 comments – viewed 97,943 times – ( +18 / -1 ) – 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: