Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function index() |
||
22 | { |
||
23 | $this->onlyAdmin(); |
||
24 | |||
25 | //going to have to think of a better way of handeling this. |
||
26 | $this->data['userRole'] = 'Admin'; |
||
27 | $this->data['userLevel'] = $this->auth->getUserLevel(); |
||
28 | |||
29 | $configObj = new ConfigModel($this->container); |
||
30 | $this->data['configList'] = $configObj->getAllConfig(); |
||
31 | |||
32 | |||
33 | |||
34 | $this->renderView('Admin/Config'); |
||
35 | } |
||
37 |