It takes me much time to figure out why but I run out of luck. Check
manual and API carefully and still cannot make it work.
My codes:
(in controller)
if ($this->User->findByUsername($this->data['User']['username']) )
$this->User->invalidate('username');
(in view)
<?php
echo $html->input('User/username', array('id'=>'username',
'size'=>'50'));
echo $html->tagErrorMsg('User/username', 'User name must be
unique
and contain at least 5 and no more than 8 chars');
?>
Any help?
Many thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---