Tuesday, October 25, 2011

Re: $this->data OR $this->request->data?

$this->data is/was just "shortcut" for merging application from 1.3.x to 2.0, now in 2.0 you should use $this->request->data
--
Lep pozdrav, Tilen Majerle



2011/10/25 Thiago Belem <contato@thiagobelem.net>
What the differente between $this->data and $this->request->data, inside the Controller?

All I know is that I can't change $this->data, but I can manipulate $this->request->data.

I just wonder why creating a new "data" to receive the POST data.

Regards,
--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil

+55 (21) 8865.9250
thiagobelem.net
contato@thiagobelem.net

Skype / gTalk » thiago.belem.web
LinkedIn » br.linkedin.com/in/thiagobelem/pt
Assando Sites
, curso de CakePHP » assando-sites.com.br

--
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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: