last post and will probably help you.
I noticed some similar behavior like this bug: https://trac.cakephp.org/ticket/5489
Actually, the bug described there happens when submitting a file,
which I did not do. But as for the similarities: I managed to get the
form working after I had disabled the Security component. Secondly, as
I went through the apache logs, I discovered the 404 errors unlike my
web browser which showed code: 200.
My form did not only contain data for the model Student but also some
other things which were related to it.
works:
- security enabled, form with student data only
- security disabled, form with all data
When submitting additional data in combination with an activated
security component, it failed. As for cake, I'm really not a pro, but
I suppose there might be an issue in the generation of _Token (key,
fields) in combination with additional (more than just the ordinary
model) form data.
Regards,
rethab
On Nov 2, 9:46 pm, rethab <rethab...@gmail.com> wrote:
> Edit:
> When I submit the form, I get an empty page, but with status code 200.
> Further, I added debug messages to beforeFilter, afterFilter and
> beforeRender of which only the beforeFilter debbug-msg appeared in the
> output.
>
> Regards,
> rethab
>
> On Nov 2, 9:43 pm, rethab <rethab...@gmail.com> wrote:
>
> > Hello
>
> > I have a form for my model 'Student'. So I have this page with the url
> > 'students/add' to add new ones. It all works unless I submit the form.
> > I checked the params via $this->params in beforeRender and the URL
> > seemed to be the same when I submitted the form as well as when just
> > displaying the form.
>
> > So I debugged in the Security Component inside the method 'blackHole',
> > the parameter $error is 'auth' at this point. Therefore I set up all
> > the Auth stuff once again, but it had no affect.
>
> > I once worked.. but I have no clue, at which point it "died".
>
> > I'd appreciate it if anybody could give me a hint..
>
> > Regards,
> > rethab
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
No comments:
Post a Comment