Example #1
0
<?php

Loader::loadModel('Auth_Model');
$oAuth = new Auth_Model();

echo 'From Bootstrap.php:<br/>';
if(!$oAuth->hasIdentity())
	echo 'you are not logged in.<br/>';

if(!$oAuth->isAdmin())
	echo 'you are not an admin.<br/>';