2012-04-29 44 views
0

我用这JS助手链接,不同的动作

   echo $this->Js->submit("Send", array(
       'before'=>$this->Js->get('#sending')->effect('fadeIn'), 
       'success'=>$this->Js->get('#sending')->effect('fadeOut'), 
       'update'=>'#success'        
        )); 

这是index.ctp和的onclick它关系到控制器的索引行为。但我希望它采取不同的行动。我怎么做的。 感谢

回答

0

得到它的工作呢

需要一个URL阵列不同的动作

echo $this->Js->submit("Send", array(
'before'=>$this->Js->get('#sending')->effect('fadeIn'), 
'success'=>$this->Js->get('#sending')->effect('fadeOut'), 
'update'=>'#success', 
'url' => array(
    'action' => 'pp' 
     ),      
));