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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2008, 05:38 AM
Junior Member
 
Join Date: May 2008
Posts: 1
Default Forwarding to another controller, shifting values from uri in request

Hi all,

I'm new to ZF, but I've used other MVC systems in PHP before, so I'm not totally green.

I'm working on a 3rd party CMS and I'm looking to add a staging mode, that may be accessed by adding a url prefix. I've got the url prefix routing through to its own controller but from there I have a few questions.

I'd like to shift some values from the beginning of the uri, set some parameters and then forward to another controller and let the request run its natural course from there. I can see the _forward method and I can guess how to use that -my main question is if/how to modify the uri in the request that will be forwarded on...?

Thanks in advance -I should imagine I'll have some more questions later!

John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-03-2008, 04:28 PM
Junior Member
 
Join Date: Apr 2008
Posts: 8
Default

_forward():
_forward("action", "controller");

Maybe $this->getResponse()->setRedirect("url"); will also do the job?

Last edited by freenity : 05-04-2008 at 12:16 AM.
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 10:26 AM.