mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
- Added new library ReihungstestLib
- Added method isEntitled to FCH_Model - Cleaned the controllers by moving the database related code in the models or libraries
This commit is contained in:
@@ -55,10 +55,7 @@ class Gemeinde extends APIv1_Controller
|
||||
|
||||
if (is_numeric($plz))
|
||||
{
|
||||
$this->GemeindeModel->addSelect("DISTINCT ON (ortschaftsname) ortschaftsname, gemeinde_id, plz, name, ortschaftskennziffer, bulacode, bulabez, kennziffer");
|
||||
$this->GemeindeModel->addOrder("ortschaftsname");
|
||||
|
||||
$result = $this->GemeindeModel->loadWhere(array("plz" => $plz));
|
||||
$result = $this->GemeindeModel->getGemeindeByPlz($plz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user