$results =
$this->
formatResult($results);
$this->
View()->
assign(['success' => true, 'data' =>
$results]);
} /**
* Function to get all inactive and active countries
*/
public function getCountriesAction() { $result =
$this->
getCountryRepository() ->
getCountriesQuery(null,
$this->
Request()->
getParam('sort',
[])) ->
getArrayResult();
$this->
View()->
assign(['success' => true, 'data' =>
$result]);
} /**
* Function to create a new payment
*/
public function createPaymentsAction() { try {