Skip to content

Commit

Permalink
🐛 #118 correção pegando query param
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Aug 10, 2022
1 parent 9ecdf69 commit 60a783c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/CreateApiControllesFiles.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ public function addSelectAll()
$this->addLine();
$this->addLine(ESP.'public static function selectAll(Request $request, Response $response, array $args)');
$this->addLine(ESP.'{');
$this->addLine(ESP.ESP.'$page = TGenericAPI::getSelectNumPage($args);');
$this->addLine(ESP.ESP.'$rowsPerPage = TGenericAPI::getSelectNumRowsPerPage($args);');
$this->addLine(ESP.ESP.'$param = $request->getQueryParams();');
$this->addLine(ESP.ESP.'$page = TGenericAPI::getSelectNumPage($param);');
$this->addLine(ESP.ESP.'$rowsPerPage = TGenericAPI::getSelectNumRowsPerPage($param);');
$this->addLine(ESP.ESP.'$orderBy = null;');
$this->addLine(ESP.ESP.'$where = array();');
$this->addLine();
Expand Down

0 comments on commit 60a783c

Please sign in to comment.