public function regionslist()
    {
        $id = $this->getRequest()->param("ID");
        $data = $this->getList($id)->map("Code", "Name")->toArray();

        return json_encode($data);
    }
public function regionslist()
    {
        $id = $this->getRequest()->param("ID");
        $data = $this->getList($id)->map("Code", "Name")->toArray();

        return json_encode($data);
    }
public function regionslist ( ) { $ id = $ this -> getRequest ( ) -> param ( "ID" ) ; $ data = $ this -> getList ( $ id ) -> map ( "Code" , "Name" ) -> toArray ( ) ; return json_encode ( $ data ) ; }
Return a list of regions based on the supplied country ID

@return string
Return a list of regions based on the supplied country ID