<?php
namespace MyApp\Controller;
class Index extends \MyApp\Controller {
public function run() {
if (!$this->isLoggedIn()) {
// login画面へ
header('Location: ' . SITE_URL . '/login.php');
exit;
}
}
}