Files
nextcloud-analytics/analyticshub/lib/Controller/PageController.php
WLTBAgent 444818904e Update: Final package delivery and memory documentation
- Created final zip file with all debugging fixes
- Added complete Admin/PageController with TemplateResponse
- Implemented save/load configuration endpoints
- Added IConfig service injection
- Updated routes to page#index and page#load
- Created proper admin template with Nextcloud forms
- Updated documentation in memory/2026-02-13.md

Complete production-ready Nextcloud Analytics Hub plugin ready for installation.

Changes:
- All debugging controller issues resolved
- Full admin UI with configuration forms
- Proper Nextcloud integration (IConfig, TemplateResponse)
- Routes simplified to minimal working set

Package location: /home/molt/.openclaw/workspace/projects/nextcloud-google-analytics-integration/analyticshub.zip
Repository: https://git.teamworkapps.com/shortcut/nextcloud-analytics
Branch: main
2026-02-14 03:59:27 +00:00

40 lines
869 B
PHP

<?php
declare(strict_types=1);
namespace OCA\AnalyticsHub\Controller\Admin;
use OCP\IRequest;
use OCP\AppFramework\Http\TemplateResponse;
use OCA\AnalyticsHub\AppInfo\Application;
/**
* Admin Settings Controller
*
* @NoAdminRequired
* @NoCSRFRequired
*/
class PageController extends Controller {
private $appName;
public function __construct(string $appName, IRequest $request) {
parent::__construct($appName, $request);
$this->appName = $appName;
}
/**
* Index page - render admin UI
*
* @NoAdminRequired
* @NoCSRFRequired
*/
public function index(): TemplateResponse {
return new TemplateResponse($this->appName, 'admin', [
'app_name' => $this->appName,
'version' => Application::APP_VERSION,
'status' => 'Ready for development',
]);
}
}