]> jfr.im git - z_archive/KronOS.git/blobdiff - video/application/controllers/backend.php
Added layout for login
[z_archive/KronOS.git] / video / application / controllers / backend.php
index 7d89ce204c996fd9defdc8582cd3effb11a3b92f..4e5e0c8ecff09737c9145f91fcbec4938ea869bd 100755 (executable)
@@ -5,14 +5,23 @@ class Backend extends CI_Controller {
                parent::__construct();
 
                $this->load->model('core');
+               $this->load->model('user');
        }
 
        public function index() {
                print "";
        }
 
+       public function logged_in() {
+               print json_encode($this->user->logged_in);
+       }
+
+       public function login_modal() {
+               print $this->core->get_login();
+       }
+
        public function get_menu() {
-               return $this->core->get_menu();
+               print json_encode($this->core->get_menu());
        }
 }
 ?>