-- monk.e.boy <[EMAIL PROTECTED]> wrote
(on Tuesday, 08 July 2008, 04:34 AM -0700):
>   In my controller, I want to redirect so I do this:
> 
> $url = $this->view->url( array( 'action'=>'projects' ), null, false );
> 
> // $url == /base_url/controller/project/1
> 
> $this->_redirect($url);
> 
> 
> BUT inside Redirector->setGotoUrl it prepends base_url *again* so I get:
> 
> $url == /base_url/base_url/controller/project/1
> 
> 1: How do I fix this?
> 2: Why does this happen?
> 3: Is it a bug or just very strange default behaviour?

Use the redirector instead of constructing the URL yourself:

    $this->_helper->redirector('project');

This will do the same as what you were trying to accomplish before.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to