Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2008, 07:00 PM
Junior Member
 
Join Date: Feb 2008
Posts: 2
Default _forward() cant find action in controller

I am trying to forward from one controllers action to another controllers action.

When I call forward from within an action I receive an error that says it cant find the action, but if I call forward from within predispatch, all is well. Am I missing something somewhere?

Code:
class IndexController extends Zend_Controller_Action
{
   public function indexAction()
   {
        $this->_forward('otherAction', 'differentController');
   }
}
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-23-2008, 03:58 AM
Member
 
Join Date: Jun 2007
Posts: 33
Default

Are you forwarding to send data with it? If not you can just do a redirect $this->_redirect('controller/action');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2008, 08:27 AM
Junior Member
 
Join Date: Feb 2008
Posts: 2
Default Found it

Thanks for the reply,

I was sending data with it. I updated my trunk and _forward seems to work now. Go Figure!

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:26 PM.