-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
30 lines (24 loc) · 767 Bytes
/
admin.php
File metadata and controls
30 lines (24 loc) · 767 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
<?php
(defined('BASEPATH')) OR exit('No direct script access allowed');
/**
* Image CMS
* Sample Module Admin
*/
class Admin extends BaseAdminController {
public function __construct() {
parent::__construct();
$lang = new MY_Lang();
$lang->load('mod_advice');
$this->load->module('mod_advice');
}
public function del() {
$this->mod_advice->_delimages();
}
public function index() {
CMSFactory\assetManager::create()
->setData('countOldImages', count($this->mod_advice->_buildImagesList(), COUNT_RECURSIVE))
->setData('oldImages', $this->mod_advice->_buildImagesList())
->registerScript('script')
->renderAdmin('main');
}
}