The URL action helper is much more robust in its functionality than the view helper.
To get an interface exactly the same as the view helper, use

$this->_helper->url->url(array(), 'routename', false);


Rolando Espinoza La Fuente wrote:
On Tue, Dec 2, 2008 at 3:06 AM, Cameron <[EMAIL PROTECTED]> wrote:
Hi guys,

The subject line sums it all up. I do some URL generation in the controller
/ model (form submission URLs and so on), and I'd love to be able to use the
same url View Helper that has proven so wonderful in my Views. What's the
trick? I'm sure it's something simple that I'm not smart enough to have
guessed.

Have you tried the url action helper?

 $thils->_helper->url($action, $controller);

Cheers,


Reply via email to