codesite...@google.com
unread,Jan 30, 2009, 3:01:29 PM1/30/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to surforce...@googlegroups.com
Author: enriqueplace
Date: Fri Jan 30 11:35:25 2009
New Revision: 39
Modified:
trunk/library/Zsurforce/Generic/Controller.php
trunk/library/Zsurforce/Generic/ControllerAdmin.php
Log:
Se agrega menú lateral que se debe ajustar a la selección del menú
horizontal (seleccionan "admin" y debería aparece en el menú lateral las
opciones de ese módulo).
Modified: trunk/library/Zsurforce/Generic/Controller.php
==============================================================================
--- trunk/library/Zsurforce/Generic/Controller.php (original)
+++ trunk/library/Zsurforce/Generic/Controller.php Fri Jan 30 11:35:25 2009
@@ -61,7 +61,7 @@
$this->view->session = $this->_session;
$this->view->config = $this->_config;
- $this->view->user = Zend_Auth::getInstance
()->getIdentity();
+ $this->view->user =
Zend_Auth::getInstance()->getIdentity();
$this->view->controllerName =
$this->_request->getParam('controller');
$this->view->moduleName = $this->_request->getParam('module');
Modified: trunk/library/Zsurforce/Generic/ControllerAdmin.php
==============================================================================
--- trunk/library/Zsurforce/Generic/ControllerAdmin.php (original)
+++ trunk/library/Zsurforce/Generic/ControllerAdmin.php Fri Jan 30 11:35:25
2009
@@ -30,7 +30,13 @@
try{
$layout = Zend_Layout::getMvcInstance();
- $layout->menu =
Models_Menu::getMenu($this->_registry->config->application->id);
+
+ $layout->menu = Models_Menu::getMenu(
+ $this->_registry->config->application->id
+ );
+ $layout->menuItems = Models_Menu::getMenuItemsFromModule(
+ $this->view->moduleName
+ );
}catch(Zend_Db_Statement_Exception $e){
$this->view->mensajeError =