2008年12月10日星期三

[fw-mvc] Send a Parameter between Actions

Hi, I need send a parameter between Actions and  I haven't found the solution.

I have this code in the Controller:
 
class clientController extends Zend_Controller_Action
{
...
   public function  viewAction(){

   }
 
   public function processAction() {
 
      (a) ... Process...
 
      $result = array('id'=>566 , array('p1'=>'6667', 'p2'=>'6668', 'p3'=>'6667', ....);
    
  ===> I like to send an array ( $result as parameter) from here to check(), because I am going to use _redirect  . how i do this?
      $this->_redirect('client/check'); 

   }
 
 
   public function checkAction() {
 
      (*) show the output ( $result)
   }
 
 
In the View :
 
view.phtml  --> it has a form ( <form method="post" action="/client/procces"> )
 
 
Thanks
 
George
 

没有评论: