Page 1 of 1

Problem with Template

PostPosted: Wed Dec 17, 2008 3:34 pm
by peluchin
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

PostPosted: Thu Dec 18, 2008 12:19 am
by shannah
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

PostPosted: Thu Dec 18, 2008 12:25 pm
by peluchin
Hi Steve!

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

Regards