Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Call to a member function init() on null #81

@aradhell

Description

@aradhell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions