Quantcast

Navigation view helper

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Navigation view helper

Chris-2
  I'm having trouble understanding how the navigation view helper is
supposed to work.

The *only* way I can get it to work the way I *think* it's supposed to
is to have my definition in [navigation][default], and call
$view->navigation('navigation')

Shouldn't it be [navigation][custom_name] and
$view->navigation('custom_name'), with [navigation][default] being used
for $view->navigation() ?

Chris
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Navigation view helper

Marco Pivetta
I personally use $view->navigation()->render($container) to avoid keeping a reference to the navigation container somewhere...
Marco Pivetta

http://twitter.com/Ocramius     

http://marco-pivetta.com    



On 6 August 2012 03:13, Chris <[hidden email]> wrote:
 I'm having trouble understanding how the navigation view helper is supposed to work.

The *only* way I can get it to work the way I *think* it's supposed to is to have my definition in [navigation][default], and call $view->navigation('navigation')

Shouldn't it be [navigation][custom_name] and $view->navigation('custom_name'), with [navigation][default] being used for $view->navigation() ?

Chris

Loading...