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