It is not only much better, it makes you feel like: how on earth could I
work before CakePHP 1.2's FormHelper?
Nothing nicer than:
<?php echo $form->create('User', array('action' => 'add')); ?>
<?php echo $form->input('User.name'); ?>
<?php echo $form->input('User.password'); ?>
<?php echo $form->input('User.email', array('error' => array(
'required' => 'Please specify an email address',
'valid' => 'Please provide a valid email address',
'unique' => 'This email address is already registered')
))); ?>
<?php echo $form->end('Create User'); ?>
How can you not fell in love with that?
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Chris Hartjes
Enviado el: Viernes, 28 de Septiembre de 2007 09:43 p.m.
Para: [email protected]
Asunto: Re: Deprecated helpers in 1.2.0.5427alpha
They are deprecated because they want you to use the Form helper
instead of the HTML helper. FormHelper is *much* better than the old
HTML helper.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---