Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Item extends CActiveRecord
- {
- public $image;
- // ... other attributes
- public function rules()
- {
- return array(
- array('image', 'file', 'types'=>'jpg, gif, png'),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement