I suspect this might be a bug--looking for confirmation, and/or advice
on the best place to report it.

I have a controller with no associated model.  In other words,
public $uses = null;

I use FormHelper to build a form for a controller action.  Because
there is no model, the form's ID and input names are not decorated
with the model name.

I use loadModel() to help process the submitted form values, after
checking $this->request->isPost().  When FormHelper creates the form
after this, it uses the loaded model name in the form's ID and input
names.  This means subsequently submitted form values have "moved" to
a different location in $this->request->data.

Maybes the workaround is to call loadModel() on every action, whether
I need to use it or not...but that is awkward.

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