crudkit
crudkit copied to clipboard
Call to a member function init() on null
Hello,
If you are not logged in and try to access a page it is not redirecting to login or something else.
| action | page_function |
|---|---|
| func | view_item |
| item_id | 75 |
| page | 1 |
public function handle_page_function () {
$pageId = $this->url->get('page');
$this->page = $this->app->getPageById($pageId);
$this->page->init($this->app);
$func = $this->url->get("func");
ValueBag::set("pageId", $this->page->getId());