Blog Tutorial: Fatal error: Cannot instantiate abstract class CActiveRecord in...

Hello,

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'); ?>

With this:


<?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.

[font=arial, verdana, tahoma, sans-serif][size=2]Take a look in the guide. First code example contains the solution to your problem.[/size][/font]