fields.ini appears to be ignored
Posted: Mon Nov 30, 2009 7:34 pm
Whatever I put in fields.ini appears to be ignored. I've had a look at the post at http://xataface.com/forum/viewtopic.php?t=3899#19539, but this doesn't seem to be the problem.
I'm on Windows XP, running xataface 1.2.2
The basic access to the database is running fine, with default fieldnames etc, and styles working.
Here is my index.php :
<?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()
?>
My file structure:
c:
--Program Files
----Apache Software Foundation
------Apache2.2
--------htdocs
----------slides
------------index.php
------------conf.ini
------------tables
--------------mounts
----------------fields.ini
--------------hangers
----------------fields.ini
----------------valuelists.ini
------------xataface
etc
Here is contents of conf.ini:
[_database]
host=localhost
name=slides
user=root
password=curly
[_tables]
; A list of tables to include in your application's menu
; These tables must already exist in your database
activities=Activities
collections=Collections
funding_bodies=Funders
hangers=Hangers
locations=Locations
mounts=Mounts
municipalities=Municipalities
photographers=Photographers
projections=Projections
projects=Projects
slides=Slides
Taking the table `mounts` for example, checking in phpmyadmin the table name is definitely all lower case. and the field `Mount_description` definitely has a leading cap and no others, so here is the fields.ini file contents:
[Mount_description]
widget:label = "Description"
widget:description = "Enter a description of the mount, starting with the material"
But when the table mounts is displayed, the field Mount description has the label Mount description and not Description, and there is no sign of the widget description. This is true of other fileds.ini files for other tables such as hangers too.
It's as if xataface cant find the tables directory, but I can't see where I might have gone wrong.
Many thanks from a newbie to xataface
I'm on Windows XP, running xataface 1.2.2
The basic access to the database is running fine, with default fieldnames etc, and styles working.
Here is my index.php :
<?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()
?>
My file structure:
c:
--Program Files
----Apache Software Foundation
------Apache2.2
--------htdocs
----------slides
------------index.php
------------conf.ini
------------tables
--------------mounts
----------------fields.ini
--------------hangers
----------------fields.ini
----------------valuelists.ini
------------xataface
etc
Here is contents of conf.ini:
[_database]
host=localhost
name=slides
user=root
password=curly
[_tables]
; A list of tables to include in your application's menu
; These tables must already exist in your database
activities=Activities
collections=Collections
funding_bodies=Funders
hangers=Hangers
locations=Locations
mounts=Mounts
municipalities=Municipalities
photographers=Photographers
projections=Projections
projects=Projects
slides=Slides
Taking the table `mounts` for example, checking in phpmyadmin the table name is definitely all lower case. and the field `Mount_description` definitely has a leading cap and no others, so here is the fields.ini file contents:
[Mount_description]
widget:label = "Description"
widget:description = "Enter a description of the mount, starting with the material"
But when the table mounts is displayed, the field Mount description has the label Mount description and not Description, and there is no sign of the widget description. This is true of other fileds.ini files for other tables such as hangers too.
It's as if xataface cant find the tables directory, but I can't see where I might have gone wrong.
Many thanks from a newbie to xataface