Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Dashboard extends Controller {
- function __construct() {
- parent::__construct();
- }
- public function init() {
- if(is_null(Session::get('user_id')))
- header('Location: /mvc/index');
- else
- $this->view->render('dashboard');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement