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);
        }
    }