You have no model so that you found those errors.
Use bellow
<?php
class AccountsController extends AppController {
var $name = 'Accounts';
var $uses = array(); // this will allow you to go without a model
function index()
{
}
}
?>
Hope this will work.
On Fri, Feb 22, 2008 at 4:34 PM, Comida411 <[EMAIL PROTECTED]> wrote:
>
> Okay
> found a spelling error on the Accounts_Controllers
>
> At first I had this.....
>
> <?php
> class AccountController extends AppController {
> var $name = 'Accounts';
> function index()
> {
> }
> }
> ?>
>
>
> I changed it to this....................
> <?php
>
> class AccountsController extends AppController {
> var $name = 'Accounts';
> function index()
> {
> }
> }
>
> ?>
> But now I am getting this error..................
> Fatal error: Class 'Account' not found in C:\Program Files\xampp\htdocs
> \cake\cake\libs\class_registry.php on line 128
>
> Did I do something bad in a previous life?
>
> Thak you for your suggestion on this new error
>
> Sincerely
> Conuda
>
>
>
>
> On Feb 22, 2:22 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> > PHP4 ? try putting var $name = 'Accounts';
> > Also, it will be useful to double check the file name and class name,
> > pay attention to case.
> >
> > On Fri, Feb 22, 2008 at 7:16 AM, Comida411 <[EMAIL PROTECTED]> wrote:
> >
> > > I am getting the following error...
> >
> > > Missing Controller
> >
> > > Error: AccountsController could not be found.
> >
> > > Error: Create the class AccountsController below in file: app
> > > \controllers\accounts_controller.php
> >
> > > You can already guess the problem.. of course I have that controller
> > > in the app>contoller folder.. Why can't cake see it.. I already
> > > checked on spelling
> >
> > > Helpme
> > > Thak you
> > > Comida
> >
> > > mu contoller is names accounts_controller.php
> >
>
--
Best Regards,
Tapos Pal
http://tapos.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---