-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSystem.php
More file actions
executable file
·34 lines (26 loc) · 895 Bytes
/
System.php
File metadata and controls
executable file
·34 lines (26 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace Foolz\FoolFrame\Controller\Admin;
use Foolz\FoolFrame\Model\System as S;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class System extends \Foolz\FoolFrame\Controller\Admin
{
public function before()
{
parent::before();
// set controller title
$this->param_manager->setParam('controller_title', _i('System'));
}
public function security()
{
return $this->getAuth()->hasAccess('maccess.admin');
}
public function action_information()
{
$data = ['info' => S::getEnvironment($this->getContext())];
$this->param_manager->setParam('method_title', _i('Information'));
$this->builder->createPartial('body', 'system/information')
->getParamManager()->setParams($data);
return new Response($this->builder->build());
}
}