Hi. Help, pls. I'm used tutorial ibm/developers: cook up web sites fast with CakePHP. but my controller Users don't receive data from register.thtml $this->data is empty. %( but I see Controller dump object is not empty:
userscontroller Object ( [_log] => [name] => users [here] => /users/register [webroot] => / [action] => register [uses] => [helpers] => Array ( [0] => Html ) [params] => Array ( [pass] => Array () [controller] => users [action] => register [form] => Array ( [username] => testname [password] => testpass [email] => [EMAIL PROTECTED] [first_name] => Andrew [last_name] => ) [url] => Array ([url] => users/register ) [bare] => 0 [webservices] => [plugin] => ) ... .... .... ... this register.thtml: <form action="/users/register" method="post"> <label>Username:</label><input name="username" size="30" /> ... .... ... <input type="submit" value="register" /> </form> this users_controller.php: <?php class UsersController extends AppController { function register(){ $this->set('username_error', 'Username must be between 3 and 20 characters.'); if (!empty($this->data)){ // !!!!!!!!!!!! PROBLEM ROW - $this- >data is empty every time !!!!!!!!!!!! if ($this->User->validates($this->data)){ if ($this->User->findByUsername($this->data['User'] ['username'])){ $this->User->invalidate('username'); $this->set('username_error', 'User already exists.'); } else { $this->data['User']['password'] = md5($this->data['User'] ['password']); if (!$this->User->save($this->data)) $this- >validateErrors($this->User); $this->Session->write('user', $this->data['User'] ['username']); $this->flash('Your registration information was accepted.','/users/index'); } } else { $this->validateErrors($this->User); } } else { //$this->flash('There was a problem with your registration.', ''); } } function knownusers() { ... .... ..... ..... Iam install cake in z:\home\test1.ru\cake address: http://cake.test1.ru/users/register z:\home\test1.ru\cake\.htaccess <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> iam use its on WINXP SERVER_SOFTWARE Apache/1.3.33 (Win32) PHP/4.4.4 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---