Exemplo n.º 1
0
 /**
  * Sets some app-specific variables and calls parent::render
  *
  * This method auto-loads the nterchange navigation if the options
  * include a 'layout'
  *
  * @see NController::render, NView::render
  * @access public
  * @return null
  */
 function render($options = array())
 {
     if (is_array($options) && isset($options['layout'])) {
         $this->set('navigation', nterchangeController::navigation($this->name));
         if (isset($this->_auth) && is_object($this->_auth)) {
             $this->set('login_name', $this->_auth->getAuthData('real_name'));
         }
         $this->set('nterchange_version', NTERCHANGE_VERSION);
     }
     return parent::render($options);
 }