Пример #1
0
 public function index()
 {
     $users = User_model::all();
     foreach ($users as $key => $value) {
         echo "ID : " . $value->id . "<br>";
         echo "First Name : " . $value->first_name . "<br>";
         echo "Last Name : " . $value->last_name . "<br>";
         echo "Email : " . $value->email . "<br><br>";
     }
 }
Пример #2
0
 static function getUser()
 {
     //return "aaa";
     $data = User_model::all();
     return $data;
 }