Created
February 15, 2010 12:32
-
-
Save kirkegaard/304611 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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