Index
<!DOCTYPE html>
<html lang="<?php echo $this->provider()->lang()->prefix(); ?>">
<head>
<?php echo $this->partial("head")->get(); ?>
</head>
<body>
<?php echo $this->partial("navigation")->get(); ?>
<main>
<?php echo $this->view()->get($args); ?>
</main>
<?php echo $this->partial("footer")->get(); ?>
</body>
</html>Change index - example 1
class PrivatePage
{
private $provider;
public function __construct(Provider $provider)
{
$this->provider = $provider;
$this->provider->view()->setIndex("private");
}
public function profile(ResponseInterface $response, RequestInterface $request): ResponseInterface
{
// Your profile view here
return $response;
}
...Change index - example 2
Last updated