Everything seems to be set up fine, and if I'm logged in I can see and edit whatever I need to on my dashboard. When I log out, I get a redirect loop error in firefox.
However! Changing this line in my conf/ApplicationDelegate.php:
- Code: Select all
$query['-action'] = 'dashboard';
to
- Code: Select all
$query['-action'] == 'dashboard';
brings the page back and allows me to log in again ... except now the Dashboard is showing the actual dashboard table. Though, I believe I'm actually just breaking that query to tell DF to use the dashboard action. However, after I've logged in I can take out that one = and save, then reload the page and now be logged in and showing the dashboard perfectly again.
It must be looping the function for the dashboard in Application Delegate, but I can't figure out how to stop it from looping. this is the code (which comes after my getPermissions function:
- Code: Select all
function beforeHandleRequest(){
$app =& Dataface_Application::getInstance();
$query =& $app->getQuery();
if ( $query['-table'] == 'dashboard' ){
$query['-action'] = 'dashboard';
}
}
If anyone has run into this issue while setting up a dashboard from the tutorial, let me know what fixed it.
Thanks,
Rory