public function index(Application $app)
{
switch ($app['request']->get('mode')) {
case 'info':
ob_start();
phpinfo();
$phpinfo = ob_get_contents();
ob_end_clean();
return $phpinfo;
break;
default:
break;
}
$this->arrSystemInfo = $this->getSystemInfo($app);
return $app->render('Setting/System/system.twig', array('arrSystemInfo' => $this->arrSystemInfo));
}