Anurag
Anurag

Reputation: 93

Why would $this->data show up an empty array after submit?

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

Upvotes: 0

Views: 91

Answers (2)

Young
Young

Reputation: 8356

Probably there're something wrong with your form.

Upvotes: 0

David Yell
David Yell

Reputation: 11855

$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.

Upvotes: 1

Related Questions