ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
32 function base()
33 {
34  //Init Factory and Renderer
35  global $DIC;
36  $f = $DIC->ui()->factory();
37  $renderer = $DIC->ui()->renderer();
38 
39  //Init Component
40  $legacy = $f->legacy()->content("Legacy\Content");
41 
42  //Render
43  return $renderer->render($legacy);
44 }
$renderer
global $DIC
Definition: shib_login.php:22
base()
description: > Example for rendering a legacy box with an inside panel.
Definition: base.php:32