indexController.php 540 B

123456789101112131415161718192021222324
  1. <?php
  2. class indexController extends Staple_Controller
  3. {
  4. private $authLevel;
  5. public function _start()
  6. {
  7. $auth = Staple_Auth::get();
  8. $user = new userModel();
  9. $this->authLevel = $user->getAuthLevel();
  10. }
  11. public function index()
  12. {
  13. $this->view->authLevel = $this->authLevel;
  14. $messages = array("The library will be closed on Monday for whatever reason. Just remember to not come in!");
  15. //$this->view->messages = $messages;
  16. $timesheet = new timesheetModel(date('Y'),date('m'));
  17. $this->view->timesheet = $timesheet;
  18. }
  19. }
  20. ?>