-
Notifications
You must be signed in to change notification settings - Fork 44
Data Fields Don't Inherit From Hierarchy? #83
Comments
Hi @natefoundry, would you mind updating to 2.0.1 and then trying again? You will need to update namespaces (from App to App\Controllers), and rename folder controllers to Controllers/ |
Here's a PR that shows the update process clearly |
I updated my composer file to use ~2.0.1, then renamed the directory and namespace for each controller, but now I have this error:
|
It needs to be PageHome.php to follow PSR4. |
That fixed it. Same for all the other controllers too (including
|
Well, all that did was update me from 9.0.0 beta to 2.0.1. I still don't see the data fields on my page-home blade template. |
For the hierarchy, are you using |
That did it. Thanks for the help. |
I created a new page called Home (
page-home.php
) and set it as my Front Page. I'm attempting to use the ACF plugin to add fields to the home page and created a controller for it:In my
page-home.blade.php
view:However, it doesn't seem to exist when I debug it:
If I move the
hero_video()
method to the controller forfront-page.php
it works:Debug output after change:
Is this the way inheritance for data fields is supposed to work? If not, what am I doing wrong?
The text was updated successfully, but these errors were encountered: