
1
Download PHP Database Objects on sourceforge.net
Once you've downloaded it, extract it in you project directory.
You should have following items in your root directory :
- Clue
- index.php
- Engine.sample.ini
2
Edit configuration file
Rename Engine.sample.ini into Engine.ini
Edit following directives :
- ; MYSQL Informations
- db.params.host = "localhost"
- db.params.username = "root"
- db.params.password = ""
- db.params.dbname = "phpdbo"
3
Create your database
Go on phpMyAdmin and create your MySQL tables.
Don't forget to create links between tables on "Relation View".
4
Display your customized api
Create a file called doc.php for example, containing following code and execute it :
- <?php
- require_once 'index.php';
- Clue_Db_Engine::printAPI();
- ?>