I have a variety of forms in a cms I am developing on one page. I use a
hidden form field ( I.E. If I was adding an image I would use a
$form->input( "Image.AddImage", array( "type"=>"hidden", "value"=>"1")); )

Then my controller ( typically an action named "manage" checks to see if
$this->data['Image']['AddImage'] is set to 1 / true and then process the
form as usual with if( $this->Image->save( $this->data ) ) ...

Works fine for me. The form will re-render the "manage" view with the errors
for the model as expected. Is what you need somehow more complicated?


willi-3 wrote:
> 
> 
> Push :-)
> 
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/requestAction%2C-modularity-and-multiple-forms-in-one-view-tf3797544.html#a11318680
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to