You have mistake class name your class name below :

<?php
class User extends AppModel{
   var $name = 'User';
}
?>



On Sun, Aug 9, 2009 at 3:19 AM, free <[email protected]> wrote:

>
> It happens when I write a very simple page script.
> I just create the a model, controller and view just as the Cake
> tutorial say,
>
> related codes:
>
> ----- app/models/user.php ----
> <?php
> class UserModel extends AppModel{
>    var $name = 'User';
> }
> ?>
>
> ---- app/controllers/users_controller.php -----
> <?php
> class UsersController extends AppController {
>    var $name = 'Users';
>    function register(){}
> }
> ?>
>
>
> ---- app/views/users/register.ctp -------
>
> <html>
> <head><title>Just a test page</title></head>
> <body>
>         <h1>Test</h1>
> </body>
> </html>
>
>
> every is so simple, but when i input the url:
> http://mysite.com/users/register,
> I just got this error:
>
> Fatal error: Class 'User' not found in /home/free/dev/webc/trunk/cake/
> libs/class_registry.php on line 140
>
>
> I don't know what's wrong with this, or it's my fault
> any advice  appreciated, thanks
>
> >
>


-- 


Regards,
Mohammad Arif Hossen
Web Developer
United Group International(UGIBD)
www.ugibd.net
Mobile no:  +88 01714355911
Mobile no:  +88 01922110308

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to