DashboardController.php (703B)
1 <?php 2 3 /** 4 * This controller shows an area that's only visible for logged in users (because of Auth::checkAuthentication(); in line 16) 5 */ 6 class DashboardController extends Controller 7 { 8 /** 9 * Construct this object by extending the basic Controller class 10 */ 11 public function __construct() 12 { 13 parent::__construct(); 14 15 // this entire controller should only be visible/usable by logged in users, so we put authentication-check here 16 Auth::checkAuthentication(); 17 } 18 19 /** 20 * This method controls what happens when you move to /dashboard/index in your app. 21 */ 22 public function index() 23 { 24 $this->View->render('dashboard/index'); 25 } 26 }