Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
php frameworks
well i never got my head around them. Like which is the best one and all? They seem so confusing. I thought it was meant to make writing code easy. And the tutorials make it seem so eaaassy!111oneoneone. Can someone help me out?
0
This discussion has been closed.
Comments
For example my company develops most applications using Symfony MVC Framework (MVC = model, view, controller).
Model = this sets up the data model used by the application
View = this sets up the user interface (the bit we see)
Controller = this sets up the control logic that links the two together
There are many frameworks out there, Ruby on Rails is widely attributed as the framework that started this current trend - however frameworks have been around since the 80's. They allow you to rapidly setup the structure for your application and they add flexibility to your apps. For example with Vanilla here the view controller allows us to quickly replicate theme php files to override and extend the base functionality.
Why should you take the time to learn? Lets take the famous blog example
How long does it currently take you to set up your database, build the database functions, setup the base classes for calling & creating user objects, set up the post & edit forms, the list form and such like? I'd guess even if you are a brilliant coder and fast typist you are looking at ... oh at least 8 to 24 hours.
With Symfony you can do all of that in less than an hour, with Rails I belive the tutorial takes you through this in about 30mins.
With Symfony & Propel you can quickly take an XML document, turn it into a database and have your app basically running very very quickly.
I am currently porting an existing application from custom code to symfony. I simply ran Propel over the database and then typed 4 commands into the command line & bang, I already have the basic system working (I can add users, retrieve user data and such like) - time taken ... oh about 15 mins! However don't think that this means you can turn whole applications around in record time - what a framework really means is you can lay the foundation quickly, then get onto building the functionality and parts you really need - instead of spending consuming time rebuilding basic structure elements.
Frameworks also provide you with access to a ton of resources. Need a Rich Text Editor - symfony comes with inbuilt support for TinyMCE, need Ajax forms - again Symfony comes with support for this built in.
However - be prepared to take the time to learn it!
Definatly do the Askeet tutorial (which is a bit hard as it's not always up-to-date) ...
There are a huge number of frameworks out there, I'm a php nut so that's all I can recommend. Symfony seems to have the biggest community support right now, in about 18 months I'd suspect Zend Framework will be the biggets in PHP circles. PHP on Trax is a Ruby port.
I've got some other ramblings about frameworks over at Studiowhiz if you are interested.
Hope that helps