TaniPHP is being developed using Apache 1.3 and PHP 4.4, but it should run on any web server that supports PHP 4.3/4.4. For database access ADOdb Lite is used so almost any database is supported.
You can get the latest version from our SVN1) repository by issuing the following commands:
c:\wwwroot\taniphp> svn co https://svn1.cvsdude.com/taniphp/svn/trunk/
Even though TaniPHP will show you a default page without configuring anything at all, you’ll soon need to tweak some things about it (mostly - the database connection).
TaniPHP uses an INI-based configuration file taniphp/config.ini.php that’s very well commented.
By default only mysql drivers are supplied. If you wish to use another database you can download ADOdb Lite and add new drivers to lib/adodb_lite/adodbSQL_drivers folder. Please review the configuration file to see what changes need to be made.
To make use of the whole potential of the TaniPHP Frameowrk, the following conventions should be used:
id.created_on field is automatically set to today’s date/time when inserting a new record.updated_on field is automatically set to today’s date/time when updating a record.foreignTableInSingurlarForm_id. For example, a students table, that links to a universities table, will have a university_id field as foreign key.models folder.classname.phpcontrollers folder.classname_controller.phpview/controller/action.php, where controller is controller name, and action is action called on that controller.| - | Example 1 | Example 2 |
|---|---|---|
| Table | Students | Categories |
| Model class | Student | Category |
| Model file | model/student.php | model/category.php |
| Controller class | Students | Categories |
| Controller file | controllers/students_controller.php | controllers/categories_controller.php |