di = $di; } /** * @return mixed */ public function getDi() { return $this->di; } public function fetchNavigation() { return array( 'subpages'=> array( array( 'location' => 'extensions', 'label' => 'Embed and integrate', 'index' => 1500, 'uri' => $this->di['url']->adminLink('embed'), 'class' => '', ), ), ); } public function register(\Box_App &$app) { $app->get('/embed', 'get_index', array(), get_class($this)); } public function get_index(\Box_App $app) { $this->di['is_admin_logged']; return $app->render('mod_embed_index'); } }