1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 10:51:21 +02:00
This commit is contained in:
Awilum
2019-06-19 15:59:39 +03:00
parent 8a1f31cc40
commit 5bf3e93242

View File

@@ -36,6 +36,9 @@ class SiteController extends Controller
*/
public function index(Request $request, Response $response, array $args) {
// Get Query Params
$query = $request->getQueryParams();
// Get uri
$uri = $args['uri'];
@@ -90,7 +93,7 @@ class SiteController extends Controller
if ($is_entry_not_found) {
return $this->view->render($response->withStatus(404), $path, ['entry' => $this->entry]);
} else {
return $this->view->render($response, $path, ['entry' => $this->entry]);
return $this->view->render($response, $path, ['entry' => $this->entry, 'page' => ($query['page']) ?? '']);
}
}