hi @runofthemill thanks again.
these are the steps that I followed:
- run
composer require soberwp/controller:2.0.1
- change
namespace App; to namespace App\Controllers;
in /app/controllers/app.php and /app/controllers/front-page.php, and in the file that I created /app/controllers/single-work.php - rename app.php to App.php and front-page.php to FrontPage.php, and my file SingleWork.php
this was the only way to remove the errors that I had, because of the PSR-4 PSR-4: Autoloader - PHP-FIG (at least this is what I understood, reading other topics)
are you 100% sure that I don’t have to change namespace App; to namespace App\Controllers;
in the files inside the /app/controllers/?
infact now I can see the @debug info
I ended up to switch to the ACF flexible content instead of the repeater and use a sort of page-builder like this topic Anybody using any page builders with sage? - #8 by nathobson
thanks again