public marks

PUBLIC MARKS from kasi77 with tags code & symfony

18 May 2008

Cross apps url helper for symfony 1.0

Here's a helper that allow to generate cross apps urls in symfony 1.0

13 May 2008

Login form in Symfony 1.1, with the new form system

Login form in Symfony 1.1, with the new form system Symfony 1.1 comes with a complete new form system. It works completely according to the MVC draft: * Model: the validation * View: the form self through widgets * Controller: the form class that the model and view parts manages and uses Make sure you have a running Symfony 1.1 based project and application and modules. In this example I build the form inside the myModule module and myLogin action. My form makes use of i18n, which is in my case autoloaded in settings.yml. This tutorial uses Symfony 1.1 beta4 and RC1.

06 May 2008

Is symfony 1.1 too verbose?

by 3 others
Among the remarks have about symfony 1.1, the most recurring one is the shift of philosophy between the 1.0 and 1.1 syntax. If symfony 1.0 syntax was made to write code fast, I believe it is not the case anymore with symfony 1.1, which is designed primarily for extensibility. The result is that a symfony 1.1 application looks a lot more like a Java program. I tend to agree that Object-Orientation is a good thing because it forces you to organize your code in a modular way. But when object-orientation makes you need to keep a symfony book aside at all times and multiply the number of LOC by two, I think it's a dead end.