Hello,
I have a sidebar as a helper.
It outputs the helper as a partial.
However, I don't want to add a load to my server so I'd like that partial to use the helper paths. Is that possible? Heres my helper.
class Zend_View_Helper_Sidebar extends Zend_View_Helper_Partial {
public function sidebar() {
$module = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();
$controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
$action = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
$module = str_replace('-', '_', $module);
$controller = str_replace('-', '_', $controller);
$action = str_replace('-', '_', $action);
if ($module == 'administration') {
$user_session = new Zend_Session_Namespace('User');
$user = $user_session->model;
return $this->partial('helper/sidebar/administration.phtml', array());