Created
December 10, 2010 00:29
-
-
Save rtgibbons/735569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function beforeFilter(){ | |
parent::beforeFilter(); | |
if ($this->action != 'index'){ | |
if (!$this->Session->check('location')) { | |
$this->Session->setFlash(__('Need to enter your location ID and password first')); | |
$this->redirect(array('action' => 'index')); | |
} | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment