]> jfr.im git - z_archive/KronOS.git/commitdiff
Added simple menu
authorConny Sjöblom <redacted>
Thu, 11 Oct 2012 08:13:12 +0000 (11:13 +0300)
committerConny Sjöblom <redacted>
Thu, 11 Oct 2012 08:13:12 +0000 (11:13 +0300)
video/application/controllers/backend.php [new file with mode: 0755]
video/application/models/core.php [new file with mode: 0644]

diff --git a/video/application/controllers/backend.php b/video/application/controllers/backend.php
new file mode 100755 (executable)
index 0000000..7d89ce2
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+class Backend extends CI_Controller {
+
+       public function __construct() {
+               parent::__construct();
+
+               $this->load->model('core');
+       }
+
+       public function index() {
+               print "";
+       }
+
+       public function get_menu() {
+               return $this->core->get_menu();
+       }
+}
+?>
diff --git a/video/application/models/core.php b/video/application/models/core.php
new file mode 100644 (file)
index 0000000..9a610b3
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+class Core extends CI_Model {
+       public function get_menu() {
+               $menu = array(
+                       '#1'    => 'Desktop',
+                       '#2'    => 'Apps',
+                       '#3'    => 'Test'
+               );
+               print json_encode($menu);
+       }
+}
+?>