Example #1
0
 function render()
 {
     global $CONFIG;
     $response = array('code' => $this->code, 'data' => Utils::decode($this->data), 'auth' => $this->auth, 'user' => $this->user, 'messages' => $this->get_messages(), 'company' => $CONFIG['company']['name'], 'lang' => $this->lang);
     Model::send_sql_log();
     //todo:convert everything to camel case here for the js. Right now all properties are still using underline syntax my_var_name
     echo json_encode($response);
     exit;
 }