"First App" not displaying correctly

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

"First App" not displaying correctly

Postby davidd31415 » Fri Dec 31, 2010 7:38 am

Hi,

I'm trying to create my first Xataface application using the tutorial in the docs.

I attached a screenshot of what I've done and what I'm seeing. The index.php is showing only the following text when I load it:

display(); ?>

I had tried without the first line (ini_set('display_errors', 1); which doesn't seem to be working anyway. I've intentionally introduced errors and they are still not displayed.

It's as if the PHP suddenly turns off at the after the greater than sign here: $app->

Any ideas on what might be causing this? I just installed WAMP2 on the XP box with default setting.

Also, is there a way to run the makesite PHP script on a Windows box?

Thanks,

David
Attachments
xadaface_help.jpg
xadaface_help.jpg (179.58 KiB) Viewed 1256 times
davidd31415
 
Posts: 2
Joined: Fri Dec 31, 2010 7:30 am

Re: "First App" not displaying correctly

Postby davidd31415 » Fri Dec 31, 2010 8:03 am

Nevermind... The tutorial does not have ?php at the beginning of the code, this was one of my problems.

A second was that for require_once I needed to use ../xataface/dataface-public-api.php instead of /localhost/xataface/dataface-public-api.php

I thought that was only a problem with xmlhttprequest; anyone know why i couldn't simply use /localhost? The error message said that the file could not be found in the FacultyOfWidgetry directory. For some reason the php code didn't seem to be starting out at the public directory.
davidd31415
 
Posts: 2
Joined: Fri Dec 31, 2010 7:30 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 20 guests

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