Executes actions after the views are rendered

@return mixed
547167
public function doAfter() {
        if ($this->_footerController) {
            $viewPath = ROOT . DS . 'app' . DS . 'views' . DS .
                strtolower($this->_controller->getControllerName()) . DS .
                strtolower($this->_controller->getAction()) . DS . 'footer.php';
            if (file_exists($viewPath)) {
                $this->_controller->addView(FView::create(strtolower($this->_controller->getControllerName()) . DS .
                    strtolower($this->_controller->getAction()) . DS . 'footer.php', $this->getController()->getApp()));
            } elseif ($this->_footerGlobal) {
                $viewPath = ROOT . DS . 'app' . DS . 'views' . DS . 'footer.php';
                if (file_exists($viewPath)) {
                    $this->_controller->addView(FView::create('footer.php', $this->getController()->getApp()));
                }
            }
        }
    }
1332592
public function index() {        
        $action = Filter::post('action');        
        if($action == 'update' && Filter::checkCsrf()) $this->update();
        
        Theme::theme(new AdministrationTheme)->init(Globals::getTree());        
        $ctrl = new PageController();
        $ctrl
            ->restrictAccess(Auth::isAdmin())
            ->setPageTitle($this->module->getTitle());

        $view_bag = new ViewBag();
        $view_bag->set('title', $ctrl->getPageTitle());
        $view_bag->set('module', $this->module);
        
        ViewFactory::make('AdminConfig', $this, $ctrl, $view_bag)->render();
    }
648028
public function run()
    {
        if (Yii::$app->getRequest()->getIsAjax()) {
            return $this->renderAjaxResponse();
        }
        $this->chooseView();
        return $this->renderHtmlResponse();
    }
605611
protected function after_execute() {
        $this->add_related_files('mod_assign', 'intro', null);
        $this->add_related_files('mod_assign', 'introattachment', null);

        $this->add_plugin_config_files('assignsubmission');
        $this->add_plugin_config_files('assignfeedback');

        $this->set_latest_submission_field();
    }
10180
public function execute()
	{
		if ($this->output->isInteractive())
		{
			$actions = array('add', 'delete', 'install', 'enable', 'disable');
			$action  = $this->output->getResponse('What do you want to do? ['.implode("|", $actions).']');

			if (in_array($action, $actions))
			{
				$this->$action();
			}
			else
			{
				$this->output->error('Sorry, I don\'t know how to do that.');
			}
		}
		else
		{
			$this->output = $this->output->getHelpOutput();
			$this->help();
			$this->output->render();
			return;
		}
	}
1365372
public function execute()
    {
        //authenticate
        if ($this->authenticate()) {
            $quote = $this->getRequest()->getParam('quote_id');
            if (!$this->helper->getFeefoLogon() or !$quote) {
                return $this->sendNoContentResponse();
            }

            $this->_view->loadLayout();
            $this->_view->renderLayout();
        }
    }
569452
protected function beforeRenderView()
    {
        $login = $this->getLoginProvider();

        if (isset($_GET["logout"])) {
            $login->logOut();
        }

        if ( $login->isLoggedIn() ){
            $this->onSuccess();
        }
    }
301634
public function render()
    {
        // Create views for regions, from config-file
        if (isset($this->config["views"])) {
            foreach ($this->config["views"] as $view) {
                $this->di->views->add($view);
            }
        }

        // Get default view to start render from
        $defaultData = [
            "currentRoute" => "route-" . str_replace("/", "-", $this->di->get("request")->getRoute()),
        ];
        $view = $this->config["view"];

        $view["data"] = array_merge_recursive($defaultData, $this->data, $view["data"]);

        if (isset($this->template)) {
            $view["template"] = $this->template;
        }

        // Get the path to the view template file
        $view["template"] = $this->di->get("views")->getTemplateFile($view["template"]);

        // Send response headers, if any.
        $this->di->get("response")->sendHeaders();

        // Execute the default view
        $start = $this->di->get("view");
        $start->setDI($this->di);
        $start->set($view);
        $start->render();
    }
1013373
public function render(View $view = null)
    {

        if ($this->rendered) {
            return true;
        }

        //$this->reloadResponseVars( $this->response );

        $onRender = new Event('Controller.beforeRender', $this);

        $this->observer->trigger($onRender);
        if ($onRender->isStopped()) {
            $this->autoRender = false;

            return $this->response;
        }

        //controllers only know about one view.
        //Every action uses a single view;
        //views can be set with $this->setView("") or $this->display(""); //or can be set on render;

        //If we are setting a really late view;
        $view = !is_null($view) ? $view : $this->getView();

        $this->response->addContent($view->render());

        $this->rendered = true;

        return true;
    }
706128
public function run()
    {
        if (empty($this->items)) {
            return null;
        }
        $this->renderLinks();
        $this->renderTemplate();
        $this->registerClientScript();
    }
1103054
protected function executeAddActions()
    {
        if (!empty($this->actions[self::GROUP_ADD])) {
            $this->executeDependedActions(self::GROUP_ADD);
        }
    }
234996
protected function _handle()
    {
        $subject = $this->_subject();
        $subject->set(['success' => true, 'viewVar' => $this->viewVar()]);

        $this->_trigger('beforePaginate', $subject);

        $controller = $this->_controller();
        $items = $controller->paginate();
        $subject->set(['items' => $items]);

        $this->_trigger('afterPaginate', $subject);

        $controller->set(['success' => $subject->success, $subject->viewVar => $subject->items]);
        $this->_trigger('beforeRender', $subject);
    }
342654
public function indexAction()
    {
        $visibilityService = $this->getVisibilityService();
        $options = $visibilityService->getOptions();

        $widgetId = $options->getWidgetId();
        if (! $widgetId) {
            $this->flashMessenger()->addMessage(
                $this->scTranslate('The widget identifier was not specified.')
            );
            return $this->redirect()
                ->toRoute('sc-admin/layout')
                ->setStatusCode(303);
        }

        $widget = $this->deriveWidget($widgetId);
        if (empty($widget)) {
            return $this->getResponse();
        }
        if ($this->getRequest()->isPost()) {
            $event = $this->request->getPost('suboperation');
            if (! empty($event)) {
                $events = $this->getEventManager();
                $params = $this->getRequest()->getPost();
                $params['widget_id'] = $widget->getId();
                $result = $events->trigger($event, $this, $params);
                if ($result->last() instanceof Response) {
                    return $result->last();
                }
            }
        }

        $view = new ViewModel;
        $view->options = $options;
        $view->widget = $widget;

        $moduleOptions = $this->getModuleOptions();
        $view->config = $moduleOptions->getWidgetByName($widget->getName());

        $view->list = $visibilityService->getContentList();
        $visibilityService->saveOptions();

        return $view;
    }
1134321
public function render()
	{
		Event::fire("laravel.composing: {$this->view}", array($this));

		// If there are listeners to the view engine event, we'll pass them
		// the view so they can render it according to their needs, which
		// allows easy attachment of other view parsers.
		if (Event::listeners(static::engine))
		{
			$result = Event::until(static::engine, array($this));

			if ( ! is_null($result)) return $result;
		}

		return $this->get();
	}
717032
public function Render()
    {
        if (strlen($this->_ankor) > 0) {
            WebApplication::$app->getResponse()->addJavaScript("window.location='#" . $this->_ankor . "'", true);
            $this->_ankor = '';
        }
        $this->beforeRender();
        $this->RenderImpl();
        $this->afterRender();
    }
290797
public function run()
    {
        echo Html::beginTag('div', $this->options) . "\n";
        echo $this->renderContainer ? Html::beginTag('div', $this->containerOptions) . "\n" : '';
        foreach ($this->templates as $template => $options) {
            if (!is_array($options)) {
                echo $this->renderElements($options);
            } else {
                echo Html::beginTag('div', $options);
                echo $this->renderElements($template, $options);
                echo Html::endTag('div');
            }
        }
        echo $this->renderContainer ? Html::endTag('div') . "\n" : '';
        echo Html::endTag('div') . "\n";

        if ($this->registerCss) {
            ActionBarAsset::register($this->view);
        }
    }
662800
public function viewAction()
    {
        $stack = $this->_initStackInstance();
        if (!$stack) {
            $this->_redirect('*/*/');
            return;
        }
        $this->_initAction();
        $this->renderLayout();
    }