Problem with Template

A place for users and developers of the Xataface to discuss and receive support.

Problem with Template

Postby peluchin » Wed Dec 17, 2008 3:34 pm

Hi all!

Thanks in advance for your help. I have installed Xataface and created the example FacultyOfWidgetry database but, when I run the index.php, the browser show me the page without template. I have my template_c directory writable(not read only, I did it with Attrib command though windows XP CMD) but I've got the same problem yet. The browser doesn't show me any error message. Excuse me for my english and thanks again.

Regards
peluchin
 
Posts: 2
Joined: Wed Dec 17, 2008 2:49 pm

Postby shannah » Thu Dec 18, 2008 12:19 am

By "showing the page without template", do you mean that you can see the page, but the styles are all wrong?

If so, then the problem is that it is not loading the stylesheets and javascripts. This means that your templates_c directory is fine.

The problem is the 2nd parameter to the df_init() function in your index.php file. This should be either the relative URL path to the xataface directory, or a full url to the xataface directory. This is not the file-system path, but the URL path.

e.g.
df_init(__FILE__, 'xataface'); // If xataface directory is located at http://yourdomain.com/path/to/app/xataface/
or
df_init(__FILE__, '/path/to/xataface'); // (if the xataface directory is located at http://yourdomain.com/path/to/xataface

or
df_init(__FILE__, 'http://yourdomain.com/path/to/xataface');

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby peluchin » Thu Dec 18, 2008 12:25 pm

Hi Steve!

I have made this changes on index.php and it works good! Thank you very much for your quick response.

Regards
peluchin
 
Posts: 2
Joined: Wed Dec 17, 2008 2:49 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 30 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved