Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.