crudkit icon indicating copy to clipboard operation
crudkit copied to clipboard

Call to a member function init() on null

Open aradhell opened this issue 8 years ago • 0 comments

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());

aradhell avatar Jul 18 '17 13:07 aradhell