I'm working on my User model ( I'm not using any Auth libraries or
anything, just doing it like the CAke blog tutorial did it ).
And I just
1. Created my register.thtml file for the user.
2. Then created the register() function in UsersController.
At this point, this function is:
function register()
{
$this->set('error', false);
}
And my register.thtml file is simply:
<?if ($error == true): ?>
<p>Please correct the following errors</p>
<? endif; ?>
( And a basic form to input username, password, etc.. )
According to the code above, the message: Please correct the
following errors should *never* appear, correct?
Wel, It's always appearing and that's blowing my mind.
I'm using CAke 1.2.
Note: ---------------------
As far as the login function goes, for this controller, I copied
the bulk of the login() function from the Cake blog tutorial, and when
I successfuly log in, I get successfully redirected to another page..
and I don't get any errors essages even though I have the same if/
endif code in that view file.
T.I.A.
Steve
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---