I’m following the blog tutorial and when I reached 2. Customizing create and update Operations, I went to the view and change this line:
<?php echo $form->textField($model,'status'); ?>
<?php echo $form->dropDownList($model,'status',Lookup::items('PostStatus')); ?>
But I got this error message:
I created the Lookup model manually by copying and pasting the code mentioned here.
Your help would be greatly appreciated.