Thursday, November 29, 2007

Beginning Symfony tutorial - Moving from plain PHP to Framework based development

Lately, i have been busy with recent two projects, which are being developed using Symfony framework. Let me say that it is fantastic. I wonder why i didn't use it before. Symfony is PHP5 framework inspired by Rails framework, exactly suitable for Web 2.0 application development. I planned to write tutorial about how to start Symfony, but realized that there are plenty of good tutorials out there. One of them is on sitepoint. Here is the tutorial, you can follow the links to read the rest of the Symfony tutorial

With the release of symfony 1.0, it's time for those who haven't tried it yet to see what's inside this beautiful framework. Stable, fully documented, and released under the open-source MIT license, symfony is used by hundreds of web sites, including some very large ones (Yahoo! Bookmarks, with its 20 million-strong user base, is built with symfony). If you haven't taken the time to look at the introductory screencasts on the symfony project website, this simple tutorial will lead you through the basics.

The best way to learn and understand symfony is to use it, so this article will lead you through the creation of a photo album application with this framework. You already know the basic features such an application should offer: the ability to upload photos, to describe and tag them, and the ability for visitors to browse and comment on your photos.

Symfony is a Model-View-Controller (MVC) framework written in PHP that's aimed at building web applications. If you're already familiar with the MVC paradigm, you won't be surprised by the way symfony organizes scripts. If you aren't familiar with MVC, you just need to understand that separating the code into three parts -- the logic code (called the Model), the presentation code (the View), and the request handling code (the Controller) -- is a good way to ensure the maintainability and reusability of code.

Not only is Symfony an MVC implementation in PHP, it also integrates a lot of objects that facilitate the development of web applications -- and integrates them all with a coherent syntax. Smart URLs, code generation, easy templating, internationalization, caching, automated form validation, and Ajax, are among the most appreciated symfony features. Developing an application with symfony is slightly different than building it with any other framework, or without any framework at all. It's faster, more productive, and just plain fun. But enough talk, let's see some code.

Read more at Sitepoint>>>

Now php scripts are developed that are more compatible to generate highest pay per click revenues. These are a nice choice for the webmaster that is a beginner, since php based web design is not easier to develop and master. A beginner can just think of getting cheap domain names and high speed broadband services but has little access to search engine optimization tricks.

1 comment:

Web Design Quote said...

I think you should update your blog. This information which you given in your post that is nice but people are looking for some new stuff that's way they are visiting you site. I hope you will add some more new post.