application/modules/g/controllers/AuthController.php
protected function _setViewSettings($action) {
        $authVars = Garp_Auth::getInstance()->getConfigValues();

        if (!isset($authVars[$action])) {
            return;
        }
        $authVars = $authVars[$action];
        $module = isset($authVars['module']) ? $authVars['module'] : 'default';
        $moduleDirectory = $this->getFrontController()
            ->getModuleDirectory($module);
        $viewPath = $moduleDirectory . '/views/scripts/';

        $this->view->addScriptPath($viewPath);
        $view = isset($authVars['view']) ? $authVars['view'] : $action;
        $this->_helper->viewRenderer($view);
        $layout = isset($authVars['layout']) ? $authVars['layout'] : 'layout';
        if ($this->_helper->layout->isEnabled()) {
            $this->_helper->layout->setLayoutPath($moduleDirectory . '/views/layouts');
            $this->_helper->layout->setLayout($layout);
        }
    }
protected function _setViewSettings($action) {
        $authVars = Garp_Auth::getInstance()->getConfigValues();

        if (!isset($authVars[$action])) {
            return;
        }
        $authVars = $authVars[$action];
        $module = isset($authVars['module']) ? $authVars['module'] : 'default';
        $moduleDirectory = $this->getFrontController()
            ->getModuleDirectory($module);
        $viewPath = $moduleDirectory . '/views/scripts/';

        $this->view->addScriptPath($viewPath);
        $view = isset($authVars['view']) ? $authVars['view'] : $action;
        $this->_helper->viewRenderer($view);
        $layout = isset($authVars['layout']) ? $authVars['layout'] : 'layout';
        if ($this->_helper->layout->isEnabled()) {
            $this->_helper->layout->setLayoutPath($moduleDirectory . '/views/layouts');
            $this->_helper->layout->setLayout($layout);
        }
    }
protected function _setViewSettings ( $ action ) { $ authVars = Garp_Auth :: getInstance ( ) -> getConfigValues ( ) ; if ( ! isset ( $ authVars [ $ action ] ) ) { return ; } $ authVars = $ authVars [ $ action ] ; $ module = isset ( $ authVars [ 'module' ] ) ? $ authVars [ 'module' ] : 'default' ; $ moduleDirectory = $ this -> getFrontController ( ) -> getModuleDirectory ( $ module ) ; $ viewPath = $ moduleDirectory . '/views/scripts/' ; $ this -> view -> addScriptPath ( $ viewPath ) ; $ view = isset ( $ authVars [ 'view' ] ) ? $ authVars [ 'view' ] : $ action ; $ this -> _helper -> viewRenderer ( $ view ) ; $ layout = isset ( $ authVars [ 'layout' ] ) ? $ authVars [ 'layout' ] : 'layout' ; if ( $ this -> _helper -> layout -> isEnabled ( ) ) { $ this -> _helper -> layout -> setLayoutPath ( $ moduleDirectory . '/views/layouts' ) ; $ this -> _helper -> layout -> setLayout ( $ layout ) ; } }
Render a configured view

@param string $action Config key
@return void
Render a configured view