Controller.php 330 Bytes
Newer Older
Mindiell's avatar
Mindiell committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php

class Controller {
	function __construct() {
		$f3=Base::instance();
    }

    // Function called before routing
    function beforeRoute($f3, $args) {
    }

    // Function called after routing
    function afterRoute($f3, $args) {
		// Rendu HTML de la page
		echo Template::instance()->render('base.html');
    }

};