iFrame Features
Tuesday, May 22nd, 2007In the previous post I introduced my new PHP framemwork - iFrame. It had the reasons why you should not use the framework. In these post, I will talk of the advantages you get if you use my framemwork. But remember - do not use my framework.
No routing - Fully file based
There are no complicated routing rules - the URL should specify which file should be used. For example…
http://www.example.com/user/create.php
Here, ‘user’ is the controller and ‘create’ is the action.
Folder Structure
Like many other framemworks, iFrame has a rigid folder structure.
/ +-commen.php +-configeration.php +-/includes/ #System files +-index.php +-/user/ +-index.php +-create.php +-/templates/ +-index.php +-/user/ +-index.php +–create.php +-/js/ +-/user/ +–create.php +-/css/ +-/user/ +–create.php
Auto inclustion of CSS/JS files
The system will auto include the CSS/JS files with the same file name as the current file - the files colored colored in green in the above ‘Folder Structure’ will be included automatically when ever the create.php(red color) file is called.
Library for Paging/Tagging
These two classes are great time savers. Unfortunatly they have no documentation - yet.
Small/Managable Files
The framemwork forces the code to be broken down into smaller parts. In this framemwork, one action is one file - instead of one controller per file as in other framemworks. I find this easier to manage than the other approch.
Uses OOPs only when it is required
I only use Object Orinted Programming only if there is a clear need to use it. This step made the system much simpler.
Three Layers
This framemwork tries to follow both MVC(server side 3 layer) and Content/Behaviour/Presentation(client side 3 layer) approches.


