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

1 view
Skip to first unread message

codesite...@google.com

unread,
Feb 10, 2009, 9:31:43 PM2/10/09
to surforce...@googlegroups.com
Author: enriqueplace
Date: Tue Feb 10 17:31:44 2009
New Revision: 45

Modified:
trunk/library/Zsurforce/Generic/Controller.php

Log:
Se agrega como atributo del controller el usuario logueado en el sistema

Modified: trunk/library/Zsurforce/Generic/Controller.php
==============================================================================
--- trunk/library/Zsurforce/Generic/Controller.php (original)
+++ trunk/library/Zsurforce/Generic/Controller.php Tue Feb 10 17:31:44 2009
@@ -40,9 +40,10 @@
*/
$this->_registry = Zend_Registry::getInstance();

- $this->_debug = $this->_registry->get('debug');
+ $this->_debug = $this->_registry->get('debug');
$this->_devel = $this->_registry->get('devel');
$this->_config = $this->_registry->get('config');
+ $this->_user = Zend_Auth::getInstance()->getIdentity();

if( Zend_Registry::isRegistered('session')){
$this->_session = $this->_registry->get('session');
@@ -63,12 +64,11 @@
$this->view->basePathHtml =
$this->_registry->get('base_path_html');
$this->view->baseUrl = $this->_request->getBaseUrl();

- $this->view->debug = $this->_debug;
- $this->view->devel = $this->_devel;
- $this->view->session = $this->_session;
- $this->view->config = $this->_config;
-
- $this->_user = $this->view->user =
Zend_Auth::getInstance()->getIdentity();
+ $this->view->debug = $this->_debug;
+ $this->view->devel = $this->_devel;
+ $this->view->session = $this->_session;
+ $this->view->config = $this->_config;
+ $this->view->user = $this->_user;

/*
* FIXME: generar un archivo de log, al imprimir esta linea

Reply all
Reply to author
Forward
0 new messages