Xataface Installer

551 views
Skip to first unread message

Phill Hopkins

unread,
Sep 21, 2013, 4:45:28 PM9/21/13
to xata...@googlegroups.com
Hi.

I've managed to get as far as running the installer through the browser (localhost/xataface-2.0.3/installer.php), I've gone for Option 1 - Create Application from existing database and have downloaded and unpacked the tar file.

I think where I'm going wrong is in the placing of the files, I've placed them within the directory created for website files (localhost/Taskdb), when I navigate to localhost/Taskdb/index.php I get the following error

Warning: require_once(xataface-2.0.3/dataface-public-api.php): failed to open stream: No such file or directory in G:\xampp\htdocs\Taskdb\index.php on line 12

Fatal error: require_once(): Failed opening required 'xataface-2.0.3/dataface-public-api.php' (include_path='.;G:\xampp\php\PEAR') in G:\xampp\htdocs\Taskdb\index.php on line 12

Can anyone advise where I may be going wrong.

Thanks in advance

Phill

Steve Hannah

unread,
Sep 21, 2013, 6:11:56 PM9/21/13
to Phill Hopkins, xata...@googlegroups.com
Check the path to xataface in the require_once command of the index.php file to make sure that it is referencing the correct location for xataface.

Steve
--
Steve Hannah
Web Lite Solutions Corp.

D Gleba

unread,
Sep 21, 2013, 6:12:57 PM9/21/13
to xata...@googlegroups.com
One simple way is to put xataface in taskdb\xataface

Your app files for taskdb will be in taskdb\

taskdb will look at taskdb\xataface for the xataface files.

D Gleba

unread,
Sep 21, 2013, 7:22:11 PM9/21/13
to xata...@googlegroups.com
Another way to get started is to go to 

1.
Download source files from the bottom of the page.

2.
Unpack them and put them in taskdb\

3.
Put the unpacked  xataface files in taskdb\xataface

4.
Use this as the contents of the index.php

<?php
require_once 'xataface/public-api.php';
df_init(__FILE__, 'xataface')->display();

5.
Make a taskdb\templates_c folder that is writable so the the system is able to write cached templates there.

6.
Edit the conf.ini with your database credentials.

7.
Edit the [_tables] stanza in the conf.ini as follows:

table_name = "The name you want to appear in your app"

example:
[_tables]
    nte_note = "Notes"
    nte_about_this_app = "About_this_app"

8.
The app should start when you put the following in your browser address bar and go to it.

localhost\taskdb


Hope this helps.

Phill Hopkins

unread,
Sep 22, 2013, 1:34:00 PM9/22/13
to xata...@googlegroups.com
Hi Steve and D Gleba,

Thanks for your responses, I relocated the xataface directory into Taskdb and adjusted the index.php file as advised. All is working as advertised.

Time to play.

Thanks again.

Phill

Bendou Hocine

unread,
Jul 7, 2014, 6:40:23 PM7/7/14
to xata...@googlegroups.com
Hi Gleba,

I followed step by step what you suggested and all things work well with FacultyOfWidgetry-4, but I've another mysql database with the name "my_db", now when I change database name in conf.ini to "my_db" the browser display a page with no content! and without any error! Knowing that the database "my_db" exist and I can connect to it with line command or with phpmyadmin. I'm using the last version of Xataface.
Can you please help me?
Thanks 

Steve Hannah

unread,
Jul 7, 2014, 6:52:07 PM7/7/14
to Bendou Hocine, xata...@googlegroups.com

Check your error log.  Probably there is a permissions  problem connecting to the database.

STeve

Steve Hannah

unread,
Jul 8, 2014, 12:46:23 PM7/8/14
to Bendou Hocine, xata...@googlegroups.com
is there a way to put a link within my application to add the second application?

Yes.  If you want to keep them as separate apps, you can just add a link (i.e. <a> tag) from one to the other.  You can add links in many ways.  E.g. implement blocks, override slots , implement actions with specified URL, etc..

If you want to make them a single app, you could just add custom actions to display the data.

 
Also users of our work must login first, and we want to use login page provided by Xataface.

If your other part were incorporated into the Xataface app as custom actions, then you would gain the benefit of Xataface authentication automatically.   Alternatively, if you wanted to keep the apps separate you could share the session.  You'd need to override the Xataface's location for its session files and then use the same directory for your other app.  This post describes how to do that:

There are other alternatives also, such as implementing a 3rd, shared authentication system (like CAS) then have both of your apps talk to it.  

Steve
Reply all
Reply to author
Forward
0 new messages