You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/app/Controllers/CloudPageController.php

19 lines
515 B
PHTML

<?php
namespace App\Controllers;
use App\Services\View;
/** User pages deliberately do not load the administrator theme styles. */
final class CloudPageController
{
public function index($request, $response, $args)
{
if ($request->getUri()->getPath() === '/user/shop') {
return $response->withHeader('Location', '/user/cloud#plans')->withStatus(302);
}
$response->getBody()->write(View::getSmarty('venix')->fetch('cloud/index.tpl'));
return $response;
}
}