No Fabian, i'm not saying a developer should't use the API. I'm saying
that when a developer is new at symfony and don't know the framework,
he should have a quick guide to start using the framework and its
features in an easy way. Then if he decide to use the framework
obviously he MUST use the API to do things better....althougt 'd be
easy to the developer to remember some useful things about the API..
I'm a linux user so i don't think you must have a button to do
everything but...sometimes things can be done(or code) in a easy
way...here an example from the Francois form chapter:
$choices = array('m' => 'Male', 'f' => 'Female');
$form->setWidget('gender', new sfWidgetFormSelectRadio(array('choices'
=> $choices, 'class' => 'gender_list')));
// Same as
$form->setWidget('gender', array('type' => 'choice', 'choices' =>
$choices, 'class' => 'gender_list'));
$form->addValidator('name', new sfValidatorString());
// Same as
$form->addValidator('name', 'string');
This is not WOWOW!!! how mucho differences!!!!!!! but this little
things make code very easy to remember(when you are coding) and
redable. In this case we have two lines but if we have a lot of code
the Francois proposed method do the code much more redable.
My english is not so good and sometimes the things i wrote are
undersood in the wrong way....sorry for this, is my fault...hope this
time can be understood..
On 28 sep, 05:34, Fabian Lange <[EMAIL PROTECTED]>
wrote:
> Hey Saganxis,
>
> > I agree with you, the new form framework is great but you must
> > remember or keep reading the form API to write code.
>
> Are you saying that you think developers should not use APIs to write code?
> I think those developers produce great 0 LOC per day....
>
> .: Fabian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---