Example #1
0
 public function post_users()
 {
     $train_id = Input::post('train_id');
     if ($train_id) {
         $state = Model_Userstate::find('all', ['where' => [['train_id', $train_id]]]);
         $this->response($state);
     } else {
         $this->response([]);
     }
 }
Example #2
0
 public function action_getoffdriver()
 {
     $data['userstates'] = Model_Userstate::find('all');
     $this->template->title = "GetoffDriver for development!";
     $this->template->content = View::forge('userstate/getoff', $data);
 }