On 1/30/07, Flexewebs <[EMAIL PROTECTED]> wrote:
> Missing Model
> No class found for the Aboutu model
>
> Notice: If you want to customize this error message, create app/views/
> errors/missing_model.thtml.
>
> Fatal: Create the class below in file : app/models/aboutu.php
>
> <?php
> class Aboutu extends AppModel {
> var $name = 'Aboutu';
> }
> ?>
Unless told not to use a conventionally named Model, a Controller will
search for a Model class with the deemed/derived singular name from
the name of the controller - so I presume that you do not have a
app/models/aboutu.php class?
But by writing the
>
> var $uses = array('Provider', 'Product');
>
above line you tell the controller do not look for a model but use the
ones which I am telling you to..
Eerie? Not really! all this Voodoo is given in the manual :-)
Cheers
Tarique
--
=============================================================
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=============================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---