$this->User->create() initialises an object instance. It is required
when creating several instances while in a loop.

$this->request->data represents the data that has been POSTed as part
of the server request.

$this->request->data['User']['hashtoken'] = $hashToken;
$this->User->set($this->request->data);
if ($this->User->validates()) {
   if ($this->User->save()) {

Be aware of versions when reading anything online. There are plenty of
sites out there with good info but some of it will inevitably be
outdated. Read the latest migration instructions first (even if it
doesn't make sense yet) and refer to it as you learn more.

http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html

On Tue, Jul 17, 2012 at 9:39 AM, Banana Man <ronanhurle...@gmail.com> wrote:
> Hi,
>
> I have finished the User Authentication tutorial and have it up and running
> now.  I found the tutorial useful but also think it lacks detailed enough
> descriptions about what is being done at each stage of the code.  I am now
> trying to add the functionality that when a new user account is created it
> first needs to be activated by an email link sent to the new user.  I am
> totally lost though as i cant fully follow the code used in the User
> Authentication tutorial as it has never been explained.  For example the //
> app/Controller/UsersController.php code is just given in one block and not
> explained in any way.  If i look through the add() action for example i dont
> fully understand what the $this->User->create(); or $this->request->data is
> doing.  I would like to add some further info to $this->request->data before
> it is saved to the database so i can insert a hashtoken that i can then
> reference for email verification.
>
> Can anyone point me in the right direction to somewhere i can get a full
> introduction to CakePHP?  I have been looking for a book on Amazon but there
> doesnt seem to be any for CakePHP 2 yet.  I havent been able to create an
> account on the Bakery for a few weeks now... i just get a Cake error when i
> use the email verification link i am sent.  The search feature doesnt do
> anything when trying to look for specific types of Bakery articles!  Any
> advice would be greatly appreciated.  I like what i have seen from Cake so
> far but i am just stuck in a position where i am finding it hard to make any
> further ground besides just copying tutorials i have come across!
>
> Thanks
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to