15 lines
384 B
PHP
Raw Permalink Normal View History

2020-05-15 12:27:34 +02:00
<?php
require_once $GLOBALS['app_path'].'Framework/Controller.php';
abstract class ControllerSecure extends Controller
{
public function executeAction($action)
{
if ($this->request->getSession()->existAttribute("user_id")) {
parent::executeAction($action);
}
else {
$this->redirect("connexion");
}
}
}