Modified:
trunk/library/Zsurforce/Generic/Controller.php
Log:
Ajustes en nombres de variables y debug
Modified: trunk/library/Zsurforce/Generic/Controller.php
==============================================================================
--- trunk/library/Zsurforce/Generic/Controller.php (original)
+++ trunk/library/Zsurforce/Generic/Controller.php Fri Jan 30 12:27:24 2009
@@ -40,8 +40,8 @@
*/
$this->_registry = Zend_Registry::getInstance();
- $this->_debug = $this->_registry->get('config')->debug;
- $this->_devel = $this->_registry->get('config')->devel;
+ $this->_debug = $this->_registry->get('debug');
+ $this->_devel = $this->_registry->get('devel');
$this->_config = $this->_registry->get('config');
if( Zend_Registry::isRegistered('session')){
@@ -62,6 +62,12 @@
$this->view->config = $this->_config;
$this->view->user =
Zend_Auth::getInstance()->getIdentity();
+
+ if(isset($this->_debug) && $this->_debug){
+ var_dump($this->_request);
+ }
+
+
$this->view->controllerName =
$this->_request->getParam('controller');
$this->view->moduleName = $this->_request->getParam('module');