<?php
namespace Modules\Documents\Generate\QuickLaunch; class Controller extends \App\Mvc\ControllerAbstract { protected function initialize() { parent::initialize(); $this->actionsCfg['index'] = ['checkOption' => false, 'checkSection'=>false, 'authType'=> 'easy']; } protected function actionIndex($R) { if (!$R['pivot']) { throw new \Engine\Mvc\ControllerException("Unspecified pivot"); } if (!$R['idPivot']) { throw new \Engine\Mvc\ControllerException("Unspecified idPivot"); } $view = new View_Index($this); $model = new Model(); $view->setOutputVar('pivot', $R['pivot']); $view->setOutputVar('idPivot', $R['idPivot']); $view->setOutputVar('documentTypesDetails', $model->getDocumentTypesDetails($R['pivot'], $R['idPivot'])); return new \Engine\Mvc\Response\Html($view->render()); } } 