I made sure that the main template references {$ENV.DATAFACE_URL}, and that index.php uses a relative path as well.
Anyone else dealt with this problem before?
Thanks.
Put a face on your database
http://xataface.com/forum/
Hi Kurtis,
The place to look is in your application's index.php file, specifically at the 2nd parameter of the df_init() function call.I generally like to keep dataface separate from your site's folder to make it easier to upgrade (treat dataface like a library).
It is worth mentioning, though, that if you did put dataface inside your site's folder, the df_init() method would look like:
df_init(__FILE__, 'dataface');
and not
df_init(__FILE__, '/dataface');
(Note the lack of a leading slash).
If you used:
df_init(__FILE__, '/dataface');
Then this would point to a dataface directory at the root of the host.
e.g. If your site was located at:
http://yourdomain.com/path.to/mysite
then dataface would be located at
http://yourdomain.com/dataface
-Steve
The only place where this needs to be set is in the index.php file.
Happy hunting.
(Also note that you could use an absolute url to point to the dataface folder).
e.g.
df_init(__FILE__, 'http://yourdomain.com/path.to/dataface');