views:

33

answers:

2

In Cakephp Why would $this->data show up an empty array after submit? i am using the security component.

+1  A: 

$this->data would be empty if nothing had been submitted during a post action from a form in most cases.

If in doubt, make sure that debug is 2 in your app/config/core.php and then

pr($this)

Which will show you everything in the app, and you can see if anything is missing. Unforunatly, with such a vague question, it's hard to give you a concise answer.

DavidYell
A: 

Probably there're something wrong with your form.

SpawnCxy