[surforce-library commit] r39 - trunk/library/Zsurforce/Generic

1 view
Skip to first unread message

codesite...@google.com

unread,
Jan 30, 2009, 3:01:29 PM1/30/09
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 =
Reply all
Reply to author
Forward
0 new messages