Hi Mohammad,

On the first glance everything looks well and your files are at the right place.

My user model look like this:
class User extends AppModel {

        var $name = 'User';
        var $useTable = 'users';
}

My users_controller starts the same as yours.

Sorry maybe someone else has an idea what is wrong.

Anja

-----Ursprüngliche Nachricht-----
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von xelios
Gesendet: Donnerstag, 16. Oktober 2008 10:15
An: CakePHP
Betreff: Re: Object not found! error...


I didn't find any typo...

Following are my files...

/
*********************************************************************************************/
C:\xampp\htdocs\cake\app\models\user.php


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

/
*********************************************************************************************/


/
*********************************************************************************************/
C:\xampp\htdocs\cake\app\views\users\register.ctp

<form action="/users/register" method="post"> <p>Please fill out the form below 
to register an account.</p> <label>Username:</label><input name="username" 
size="40" />

<label>Password:</label><input type="password" name="password"
size="40"
/>

<label>Email Address:</label><input name="email" size="40"
maxlength="255" />

<label>First Name:</label><input name="first_name" size="40" />

<label>Last Name:</label><input name="last_name" size="40" />

<input type="submit" value="register" /> </form> / 
*********************************************************************************************/



/
*********************************************************************************************/
C:\xampp\htdocs\cake\app\controllers\users_controller.php

<?php
class UsersController extends AppController {
  var $name = 'Users';
  var $helpers = array('Html', 'Form' );


  function register()
  {
    if (!empty($this->params['form']))
    {
      if ($this->User->save($this->params['form']))
      {
                $this->flash('Your registration information was accepted.', 
'/users/ register');
      } else {
                $this->flash('There was a problem with your registration', 
'/users/ register');
      }
    }
  }  // END - register

} // END - class
?>

/
*********************************************************************************************/


I've a doubt on "users_controller.php", may be it is not in an appropriate 
place.



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to