Add UIBlocks to twig (WIP)

This commit is contained in:
Eric
2021-01-13 16:35:01 +01:00
parent 2b798baffc
commit 77808ecd41
23 changed files with 929 additions and 154 deletions

View File

@@ -19,7 +19,7 @@
namespace Combodo\iTop\Application\TwigBase\Controller;
use ajax_page;
use AjaxPage;
use ApplicationMenu;
use Combodo\iTop\Application\TwigBase\Twig\TwigHelper;
use Dict;
@@ -560,13 +560,14 @@ abstract class Controller
break;
case 'ajax':
$this->m_oPage = new ajax_page($this->GetOperationTitle());
$this->m_oPage = new AjaxPage($this->GetOperationTitle());
break;
case 'setup':
$this->m_oPage = new SetupPage($this->GetOperationTitle());
break;
}
$this->m_oTwig->addGlobal('UIBlockParent', [$this->m_oPage]);
}
/**