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

--~--~---------~--~----~------------~-------~--~----~
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