How to set CHtml $scenario for use in active* methods?
How to set CHtml $scenario for use in active* methods?
For example: <?php activeLabelEx($model, 'content') ?>
Validation scenario defined in model: array('content','required','on'=>'insert')
As of 1.0.4, you can set the "scenario" property of your model instance.
You can also set CHtml::$scenario='insert'.
Very thanks, Yii is great.