Having a conundrum here.
Updated to the latest Sober Controller and my localhost instance works fine. However, when pushed to the development server I get the following error:
Fatal error: Uncaught ReflectionException: Class App\Controllers\app does not exist in /data/www/truthout4-dev/public_html/wp-content/themes/truthout4/vendor/soberwp/controller/src/Loader.php:119
Reading up on namespacing I see I used namespace App;
rather than namespace App\Controllers;
, (odd though that it works on localhost) so I fixed that error and pushed again.
However that generates the error:
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'App' not found...
for any template calling on an App function, both on localhost and the dev server.
`
But app.php has it defined:
namespace App\Controllers;
use Sober\Controller\Controller;
class App extends Controller
I thought Iād followed the instructions correctly, but Iām new to the Sober Controller and itās still a bit of a mystery to me. What am I doing wrong?