get('twig-vars'); $twigVar->def( 'menu', [ [ 'name' => 'Certificates', 'path' => '/panel/certificates' ], [ 'name' => 'Servers', 'path' => '/panel/servers' ], [ 'name' => 'Invites', 'path' => '/panel/invites' ], [ 'name' => 'Config builder', 'path' => '/panel/config-builder' ], [ 'name' => 'Profile > ' . $this->getUser()->getUsername(), 'path' => '/panel/profile' ], [ 'name' => 'Logout', 'path' => '/logout' ] ] ); $twigVar->def('currentpath', $this->getRequest()->getUri()->getPath()); } public function handle() { return $this->redirect('/panel/certificates'); } }