I have creating dashboards for different apps before, but have never had this problem:
the dashboard.html template will not show I just get a blank main_column when the table is loaded after login.
Table delegate:
- Code: Select all
class tables_dashboard {
function getPermissions(&$record){
if ( getUser() ){
return Dataface_PermissionsTool::ALL();
}
return null;
}
Application delegate:
- Code: Select all
function beforeHandleRequest(){
$app =& Dataface_Application::getInstance();
$query =& $app->getQuery();
if ( $query['-table'] == 'dashboard' and ($query['-action'] == 'browse' or $query['-action'] == 'list') ){
$query['-action'] == 'dashboard';
}
}
Actions:
- Code: Select all
class actions_dashboard {
function handle(&$params){
df_display(array('Contacts'=>$Contacts), 'dashboard.html');
}
I have the default_action=find in my conf.ini and in my actions.ini
[dashboard]
permission=view
Any suggestions for what might be the problem
Thanks