December 2011
2 posts
5 tags
Yii Changing theme via Application Configuration
Changing theme via Application Configuration
‘theme’=>’classic’, //instead of classic put theme in themes folder
Getting the path of object
“<?php echo Yii::app()->theme->baseUrl; ?>/images/calendar.gif”
conditional-validation-rule
public function rules() { return array( .... array('field5', 'validateF5'), .... ); } public function validateF5($attribute, $params) { if ($this->checkbox4>0) { $ev = CValidator::createValidator('required', $this, $attribute, $params); $ev->validate($this); } }
...