|
Introduction and user tips |
|
Written by Hidalgo Emmanuel
|
|
Wednesday, 20 August 2008 10:11 |
|
Introduction :
PHPSIMPLEDB is a tool of basic mapping data (ORM for objects relationnal mapping). It makes it possible to manage several projects in parallel.
Used in a project PHP, this tool will allow you to save an invaluable time during your developments. Once your project created, you define the existing relations enter the various tables then Framework occupies yourselves moreover. Use then the files directly in your application PHP / MYSQL.
The project being still rather young, PHPSIMPLEDB presents a purified interface of all options. What makes the solution rather easy of catch in hand.
You will find on the official site a technical documentation (in French) like a series of tutoriaux allowing he installation and the catch in fast hand.
If you never used ORM during your developments, made the test, the installation and the execution of the tutorial of catch in hand will take only about twenty minutes to you.
The Council of use :
We advise you to use in a total way the object of access to the database.
|
<?php
include_once( 'phpsimpledb.class.php' ); Global $oBDD ; $oBDD = new PHPSIMPLEDB(); ?>
|
The data of connection (waiter, bases, to use, password) are in the class “phpsimpledb.class.php”.
If you directly modify the data of connection in the file, those could be lost at the time of the next redeployment. If you wish to use constants instead of value into clear, to modify your source file (once generated) and to notch the box (not to generate the class “phpsimpledb.class.php”) during your next generation. |
|
Last Updated on Monday, 27 July 2009 20:07 |