IndexController.php (498B)
1 <?php 2 3 class IndexController extends Controller 4 { 5 /** 6 * Construct this object by extending the basic Controller class 7 */ 8 public function __construct() 9 { 10 parent::__construct(); 11 } 12 13 /** 14 * Handles what happens when user moves to URL/index/index - or - as this is the default controller, also 15 * when user moves to /index or enter your application at base level 16 */ 17 public function index() 18 { 19 $this->View->render('index/index'); 20 } 21 }