<?php
 namespace Modules\Invoices\BalanceView; class Controller extends \App\Mvc\ControllerAbstract { protected function initialize() { $this->actionsCfg['index'] = ['checkSection' => false, 'checkOption' => false,]; } protected function actionIndex($R) { $class = getClassNamespace(get_class($this)).'\Model'; $model = new $class(); $result = $model->getResult($R['idBalance']); $view = new View_Index($this); $view->setOutputVar('clientData', $result['clientData']); $view->setOutputVar('supplierData', $result['supplierData']); $view->setOutputVar('balance', $result['balance']); $view->setOutputVar('currencies', $result['currencies']); $view->setOutputVar('idBalance', $R['idBalance']); return new \Engine\Mvc\Response\Html($view->render()); } }