Skip to content

Instantly share code, notes, and snippets.

@kirkegaard
Created February 15, 2010 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirkegaard/304611 to your computer and use it in GitHub Desktop.
Save kirkegaard/304611 to your computer and use it in GitHub Desktop.
<?php
class Planner_Bootstrap extends Zend_Application_Module_Bootstrap {
protected $_moduleName = "Planner";
protected function _initNavigations() {
$this->bootstrap('View');
$view = $this->getResource('View');
$auth = Zend_Auth::getInstance();
$view->placeholder('menu-user')
->setPrefix('<ul>')
->setPostfix('</ul>');
if($auth->hasIdentity()) {
$view->placeholder('menu-user')->captureStart();
print '<li>horse</li>';
$view->placeholder('menu-user')->captureEnd();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment