Twitter Feed

Xataface Maillist

Sign up to receive the Xataface news letter with weekly updates and development tips.

 
Found 135 of 135 records in table Wiki
Now Showing 16 of 135

Current Record: http://xataface.com/documentation/how-to/site_with_backoffice_How_to_build_a_site_with_a_backoffice_

A site with a backoffice

[Permalink]

A site with a backoffice

To create a site with a backoffice for the administrator, so that the visitors do not have to log in to read the pages, you add this code in the ApplicationDelegate.php file in the conf directory :

function getPermissions(&$record){
    if ( isAdmin() ) return Dataface_PermissionsTool::ALL();
    else return Dataface_PermissionsTool::READ_ONLY();
}
 
blog comments powered by Disqus
Powered by Xataface
(c) 2005-2010 All rights reserved