class should just be "Category", not "CategoryModel".
- Jamie
On May 27, 12:36 pm, mwaterous <m...@watero.us> wrote:
> I'm a recent convert from CodeIgniter to CakePHP, and up until now I
> haven't used Cake's scaffolding. This morning I found myself with a
> need to build some data quick and decided to give it a go.
>
> Literally all I did was build a skeleton Categories controller, ie
>
> class CategoriesController extends AppController {
> public $scaffold;
>
> }
>
> and I created a skeleton model,
>
> class CategoryModel extends AppModel {
>
> }
>
> ...but with the model in place, I get "Fatal error: Class 'Category'
> not found". If I remove the model, it works. I thought you could
> scaffold with models in place though, especially since I have
> relationships to build for this model and that was part of the whole
> purpose. Any ideas what I'm doing that's messing it up?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment