Initial commit
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user