Bin-Blog logoBin-Blog

Learn about the latest in Web Development – as soon as I do.

iFrame – My PHP Framework

By • May 18th, 2007 • Category: PHP, Scripts, Web Development

iFrame Logo

I have created a number of Web Applications – Nexty and Jus5 are just a few examples. I used a common code base when creating these sites – but I did not consider it a full fledged framework. However, now the code base has evolved enough to be called a framework. So, I called it a framework – the iFrame framework. I know, lame joke – geek humor ;-)

Before moving further, a word of warning – Do not use this framework for your project. There are plenty of great PHP frameworks out there – use one of those. For example…

These are professional, enterprise level frameworks. They are secure, well designed and documented. Use any of those when creating your site – do not use mine. There are no legal restrictions – the code for iFrame is under BSD License. These are the reasons why you should not use my framework…

Disadvantages

Documentation
Many Users of frameworks complain that there is not enough documentation. My framework has no such problems – it has no documentation whatsoever . They only way to find what a function is supposed to do, is to read the code.
Bugs
This system is developed, used and tested by just one person – me. So, there are many yet undiscovered bugs.
No ORM
Those who are in love with ORM will be disappointed when using iFrame – I have not implemented ORM.
Currently, only MySQL is supported
There is a database abstraction layer – but as of yet, only MySQL is supported.
And a lot more other reasons
The reasons why you should not use this framework is too numerous to list here.

Advantages

Despite all the given disadvantages, I will use this framework – these are the reasons for that…

Lightweight
This is the most lightweight framework that I have ever seen.
Helpful functions that reduce coding time

All my PHP functions are available in the framework – If you know how to use them, these functions save a lot of time. For example…

Encourages clean code
iFrame is an MVC framework(although the ‘Model’ is a bit limited for now). By default, each controller has its own folder and each action has its own file. This will greatly increase the number of files – but will reduce the number of lines in each file. Some might find it hard to use – but I find it more manageable this way.
A lot of cool features
I will talk about these ‘cool features’ in the next post.

Code

What good is a framework without the code…

View the iFrame code online

You can get the code from my subversion server – use this command…

svn checkout http://www.bin-co.com/php/scripts/iframe/code/ iframe


5 Responses »

  1. Ankur says:

    Well I hv no knowledge of php … nevertheless good efforts :-)

  2. […] Learn about the latest in Web Development – as soon as I do.   « iFrame – My PHP Framework […]

  3. Juno says:

    I had heard about framework.But for my work I much like do from nothing,although I snipped from any site thanks for them.. I much better now.. Well It’s just beginning.. Anyway nice tutorial, it’s remind me something it’s will be usefull for my project thanks to you..

  4. Neeraj Gupta says:

    hello binny ,

    i ma developing a website in php and mysql for my client and got stuck with the frames ,

    i have an user window from there if user is admin he can be redirected to admin control panel ( this loads in a different page ).
    In admin CP there are various links like define user , edit user , define leave type etc.

    1. i want to use an i frame on admin cp which loads each link in the iframe but i am not able to solve the problem with src attribute in iframe tag.

    2. how can i load every time different src value every time admin clicks
    a link .

    looking for an early reply

    thanks in advance !!

  5. php framework says:

    Hi,
    I am a php beginner,I have learnt php for six month,I wanna to use php framework but I cannot know which one is better? My friend recommend a good site,which includes php framework!
    Thanks for your help!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>