I am writing an web application powered by PHP, Smarty, JavaScript, CSS, MySQL.
There will be some classes, which will be used through out the application. There wi
Just remember PHP libraries and template files should not be directly accessible over the web server.
You can make class names like My_Db_Table and load them with __autoload.
/project
- /config
- /html
- - /css
- - /images
- - /js
- - /subdirs for php files unless you use apache mod_rewrite or similar
- - index.php
- - otherfiles.php
- /lib
- - /My
- - - /Db
- - - - Table.php
- /templates
- /functions
- /scripts