diff --git a/analyticshub.zip b/analyticshub.zip index 54c0f3a..310c9a7 100644 Binary files a/analyticshub.zip and b/analyticshub.zip differ diff --git a/analyticshub/lib/Controller/PageController.php b/analyticshub/lib/Controller/PageController.php index cee3604..53bb1f6 100644 --- a/analyticshub/lib/Controller/PageController.php +++ b/analyticshub/lib/Controller/PageController.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace OCA\AnalyticsHub\Controller; use OCP\IRequest; +use OCP\AppFramework\Controller; /** * Admin Settings Controller @@ -12,14 +13,13 @@ use OCP\IRequest; * @NoAdminRequired * @NoCSRFRequired */ -class PageController { +class PageController extends Controller { private $appName; - private $request; public function __construct(string $appName, IRequest $request) { + parent::__construct($appName, $request); $this->appName = $appName; - $this->request = $request; } /** @@ -39,19 +39,19 @@ class PageController { echo 'h1 { color: #0082c9; margin-bottom: 20px; }'; echo 'p { line-height: 1.6; color: #333; }'; echo 'strong { color: #0066cc; }'; - echo '.success { color: #28a745; background: #d4edda; padding: 10px; border-radius: 5px; margin: 20px 0; }'; + echo '.success { background: #d4edda; color: #28a745; padding: 15px; border-radius: 5px; margin: 20px 0; }'; echo ''; echo ''; echo '
'; echo 'App Name: ' . htmlspecialchars($this->appName) . '
'; - echo 'Request Path: ' . htmlspecialchars($this->request->getPathInfo()) . '
'; - echo 'Status: Controller successfully resolved and executed.
'; + echo 'Status: Controller successfully loaded and extending proper Controller base class.
'; echo 'The app routing is now working correctly. You can now build the full admin UI with TemplateResponse, forms, and all the features.
'; - echo 'Next steps:
'; + echo '✅ Routing test successful!
'; + echo 'The app is now working correctly. You can:
'; echo '