Url view helper

When creating a link in a view file to another page of your application, Zend Framework provides a view helper that is very handy: Zend_View_Helper_Url.

echo $this->url(array(
    'module' => 'abc',
    'controller' => 'def',
    'action' => 'ghi',
    'param1' => '1',
    'param2' => '2'
); // output: "/abc/def/ghi/param1/1/param2/2"

If you don’t provide the module, controller or action, the current module, controller or action will be used as default values.

I think this is a very easy way to create links inside an application, without retyping every time your controllers or actions.