Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Trouble Upgrading from 9.0.0-beta4 #66

@rorymcdaniel

Description

@rorymcdaniel

After upgrading to 2.0.0 from 9.0.0-beta4, I can only get static methods to work in the templates. I am using the Sage 1.0 release.

I change app/controllers to app/Controllers, changed the namespace of the two example controllers to App\Controllers and changed the filenames to App.php and FrontPage.php

Again, using the default examples from Sage, in resources/views/partials/page-header.blade.php, I have to change App::title() to \App\Controllers\App::title() - This static function works as expected.

However, any public methods do not appear to show up in the templates.

When I put @debug into resources/views/app.blade.php I get:
Warning: reset() expects parameter 1 to be array, null given in /home/vagrant/Code/alairhomes3.0/wp-content/themes/alairhomes/vendor/soberwp/controller/src/Debugger.php on line 34
There is the same error repeated for lines 37 and 71

Is there something I'm doing wrong or something I missed when upgrading?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions