How should I create a log off button in my menu bar that's rendered by a view helper?
问题 I have a subnav bar in my module created from a view partial via a helper. Here is the config in module.config.php: 'navigation' => array( 'default' => array( array( 'label' => 'Create', 'route' => 'mymodule\Create', ), array( 'label' => 'View', 'route' => 'mymodule\view', ), array( 'label' => 'Search', 'route' => 'mymodule\search', ), array( 'label' => 'Log Off', 'route' => 'mymodule\logoff', ), ), ), ); So here is my problem, I don't just want to redirect the user to the login page, I want