I don't see any obvious typo in your classes but one thing popped into
my head that I thought I'd ask you.
Are you developing in 1.1 or 1.2?
IBM had a bunch of tutorials for early Cake 1.1. They do not work as
expected on 1.2 because so much has changes in the APIs.

/Martin

On Oct 16, 10:14 am, xelios <[EMAIL PROTECTED]> wrote:
> 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 [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