I use

$this->set('editorcontent', 
$this->requestAction('/bare/editorcontents/showedit/'.$id, 
array('return' => true)));

to get in a form of the edit of CategoriesController the 'display' part 
of the edit in the EditorContents controller.
(So in the case if(empty($this->params['data'])) in the edit 
CategoriesController )

Now in to save the edited values ( case of if 
($this->Category->save($this->params['data']))   ):

 if 
($this->requestAction('/bare/editorcontents/saveedit/'.$this->Category->id, 
array('return'))){

Hope it helps

Olivvv



[EMAIL PROTECTED] wrote:
> I shall try and clarify what I am trying to do.
>
> I have a simple form on several static /pages/
>
> it is taking an email address and then submitting this to /subscribers/
> controller, and /add action
>
> If this is saved / validated ok, then it will flash and return user to
> where they came from.
>
> If it fails validation, I want to REDISPLAY the form, with the
> tagErrorMsg showing the relevant error in the form itself.
>
> But I don't know how to get from the section of code in my subscribers
> controller after a failed validation, back to the redisplay fo the form
> and the error that occuerred. This is to do with the switching from one
> controller to another, which I am unclear on how to do. Also how to
> pass data between the 2.
>
> cheers
> Luke
>
>
> >
>
>   


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

Reply via email to