by mikep » Thu Apr 30, 2009 11:35 am
Ok. so I followed those directions exactly. When I got to creating the index.php file, I copied and pasted
<?php
// Include the Xataface API
require_once 'xataface/dataface-public-api.php';
// Initialize Xataface framework
df_init(__FILE__, 'xataface');
// first parameter is always the same (path to the current script)
// 2nd parameter is relative URL to xataface directory (used for CSS files and javascripts)
// Create a new application
$app =& Dataface_Application::getInstance();
// Display the application
$app->display()
into an index.php file.
When i view this file with my web browser, a blank page comes up.
I tried to go to "view page source" but the page source is empty.
I also tried adding ?> at the end of the index.php file and the results remain the same.
I know PHP is working on my apache server because phpMyAdmin is working.
If i replace __FILE__ with the path to my application (/srv/www/htdocs/myapp/' and add ?> at the end of the script, i get a message that says "Error loading config file. No tables specified"
my config file looks like
[_database]
host=localhost
name=test
user=mikep2
password=mikep2
[_tables]
;; This section lists the tables to include in your application menu
table1=Job
table2=customer
What am I doing wrong?