Initial commit

This commit is contained in:
Senad Uka
2018-06-11 11:09:35 +02:00
commit ed7df7b11f
1954 changed files with 483354 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
/**
* CountriesController controls the actions for countries
*/
class CountriesController{
private $model;
function __construct(){
$this->model = new CountriesModel();
}
/**
* returns json response for countries
* @return list all countries json
*/
public function getAllCountries(){
$getArray = isset($_REQUEST['getArray']) ? $_REQUEST['getArray'] : false;
echo json_encode($this->model->getAllCountries($getArray));
}
}
?>