Fatal Error Class Not Found

Hi, i’ve run into a weird error. Fatal error: Class ‘AccountCode’ not found. The error was produced when i placed this code:

<?php echo $form->textFieldControlGroup($model,'account_code_id',array('span'=>5)); ?>

in my form. I know that account_code_id is in the model. any ideas as to why it produced this error?

Where did you generate that model? Are you sure you’ve imported it in config/main?

The model being used is Scdattrib but there is no AccountCode class which is weird.

You should Import that model class in config/main

Got it. thanks man.

Plus + man!