I put the latest version of the framework in a subdirectory of my
site. I can access the login page, but when I try to logout, or access
anything not logged in, I get a Object not Found error -The requested
URL was not found on this server. It looks like I need to modify my
path, but I'm not sure where. Changing loginUrl doesn't seem to help.
I'm currently testing the framework on localhost, and it's located in
a login directory (localhost/mysite/login/login.php).
Also, I'm not sure what the best way to check the logged in status and
credentials is. Right now, I've included the following in my index
page (localhost/mysite/index.php).
<?php
require 'login/includes/master.inc.php';
$Auth->requireUser('login/login.php');
if($Auth->loggedIn() ==true)
echo 'hi ' . $Auth->user->username;
?>
<br /><a href="login/logout.php">Logout</a>
If I'm logged in, it works, but I don't know how to restrict the page
to a admin. If I'm logged out, it tries to redirect me to
http://localhost/login.php?r=http://localhost/mysite/index.php