Joomla flash intro guide  

Why Frameworks Should Be Required For Custom Web Application Development
By Blue Web Development
Think of the internet such as a block of houses in your neighborhood. Many of the houses in your neighborhood are built with different materials. Some houses are made of brick, wood, and mortar. Some are built of metal but when it really gets down to it, the best built house will always make it through the most inclement of weather.

Now think of building a house like a custom web application development project. Many developers in the business nowadays try to cut corners by building applications without the proper materials. Many sites are operating with straight PHP code that executes commands going down a page. Whats the problem with this style of coding? The problem is that a straight PHP file with executing commands poses many problems, for one lets go back to the idea of a house. If you were to build a house and instead of build rooms, combine everything into one large room without doors and walls, wouldn't you feel cluttered and unable to locate certain items? The same logic applies to web development.

Frameworks are basically the building blocks to a web application. Just like with a house with rooms, frameworks operate with the same logic. That logic is organization. Frameworks were built so that your web application can easily be managed without having to sift through hundreds of lines of code just to debug issues. By utilizing the use of a framework you can now separate all of your actions into separate files, and you can organize your code so that if something breaks on your application and you need to debug the issue, you can easily find the code thats causing the issue and resolve the issue. As you can probably imagine, this concept of organization and reusable code will save you tons of hours in web applications development.

There are many different frameworks available to use. You can use cakephp, codeigniter, and many others to help. Here at Blue Web Development we primarily use cakephp just because of the amount of code thats already developed and available to be used quite readily. Cakephp also features a great templating engine as one of its primary core features, we suggest that you check out cakephp.

Now the million dollar question. How do you use a framework? If you are a beginner PHP developer or even an expert PHP developer we recommend that you use cakephp to start just because its probably the easiest to learn for users at all levels. Usually though a framework consists of the following structures:

Model - Think of a model as the small

parts and engine of a car

Controller - Think of a controller as the steering wheel, radio buttons, temperature buttons in a car

View - Think of the view as what you would see through the windshield, through the speakers in the car, and feel through the vents

Now imagine that you are in your car right now, you want to listen to the radio so you click on the volume button in your car to turn the music up. You have just interacted with the controller, the clicking action that you sent into the radio, interacted with the radios internal parts and hit up the model, the model then sent back the music to be played louder through the view (which is the speakers).

Simple enough right? This kind of logic is what you will mostly find in a framework, you will find a system that will look for an action, take that action from the controller and invoke data and process that data through the model, and then take that data from the model and display it on the view (which is usually the web browser).

Now your probably asking? How do I send my action into a controller? When a developer first looks at cakephp or maybe even codeigniter you are probably trying to figure out how does it all work? Its actually quite easy, in most frameworks there is a component that has developed that is usually called "the router". The router usually some code that basically asks two questions. Those two questions are:

What do you want to do? What action?

What are you sending me? What parameters?

Once these questions are answered successfully, the router will take your action, and your parameters and send it all into the controller for processing.
Small Business Web Development & Corporate Web Development Solutions with a Lifetime Quality Guarantee - Experience the difference today with Blue Web Development


Copyright 2009 by, All Rights Reserved