- Renamed AdminController to PageController - Route name is 'page#index' so controller must be 'PageController' - Fixes Could not resolve PageController error - Updated routes.php to use PageController - Updated info.xml navigation to point to PageController - Removed old AdminController.php - Improved HTML output with better styling and next steps This was the root cause: Controller class name must match route name. Route: page#index → Controller: PageController App routing should now work correctly!
22 lines
330 B
PHP
22 lines
330 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\AnalyticsHub;
|
|
|
|
/**
|
|
* Routes for Mini-CMO Analytics Hub
|
|
*/
|
|
|
|
return [
|
|
'routes' => [
|
|
// Admin route - use root path
|
|
[
|
|
'name' => 'page#index',
|
|
'url' => '/',
|
|
'verb' => 'GET',
|
|
'requirements' => [],
|
|
],
|
|
],
|
|
];
|