Trying to pass variables to different actions within the controller:
showresult page contains two elements.
I make the submit variable generic and then call the different
actions.  I am having trouble passing the variable to the other
controller actions any clues...

Thanks

//// app/controllers/youtube_controller.php
//class SurfController extends AppController
//{
//
//  var $helpers = array('Html', 'Ajax');
//  var $layout = 'yahoo';
//
//
//  function index()
//  {
//  }
//
//  function showresult(){
//  $this->layout = 'ajax';
//  $this->set($yahoosearch = $this->data['Youtube']
['youtubesearch']);
//  $this->requestAction('/surf/showresult1');
//  $this->set($youtubesearch = $this->data['Youtube']
['youtubesearch']);
//  $this->requestAction('/surf/showresult2');
//  }
//
//  function showresult1($yahoosearch){
//  $this->layout = 'ajax';
//  //$yahoosearch= $this->$generic;
//  //$yahoosearch = $this->data['Youtube']['youtubesearch'];
//  $this->set('question', $this->Surf->getResultsby2($yahoosearch));
//  }
//
//  function showresult2($youtubesearch){
//  $this->layout = 'ajax';
//  //$youtubesearch = $this->$generic;
//  //$youtubesearch = $this->data['Youtube']['youtubesearch'];
//  $this->set('videoFeed', $this->Surf-
>getResultsby($youtubesearch));
//  }
//
//  function show($yahoosearch = null)
//  {
//    $this->set('question', $this->Yahoo-
>getResultsby2($yahoosearch));
//  }
//
//}
//


On Jan 9, 11:24 pm, seacloud9 <[EMAIL PROTECTED]> wrote:
> I would like to call multiple actions on an ajax form? Below are two
> action but the last action is the only action that is rendered the
> first action is not?
>
> //<?=$ajax->form(array('action'=>'/surf/showresult'),
> array('action'=>'/surf/showresult2'), 'post', //
> array('update'=>'questionID','loading'=>"Toggle.display('spinner');",'complete'=>"Toggle.display('spinner');stripe();")
> //)?>
--~--~---------~--~----~------------~-------~--~----~
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