You are viewing revision #3 of this wiki article.
This version may not be up to date with the latest version.
You may want to view the differences to the latest version.
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.
The missing echo ¶
In the view put:
<h1>Edit item: <?php $model->label; ?></h1>
Now spend your time debugging why $model->label has no value set.
Rules for numbers ¶
In the model rules() method put:
array('count', 'number', 'integerOnly'=>true),
array('count', 'numeric', 'integerOnly'=>true),
and only then look it up: 'numerical'.