Wednesday, December 29, 2010

Re: Can we mix plain php,html and cakephp?

Another reason to use the form helper is the error handling

if your marking the form yourself you'd lose this.

Taking the time to learn to use the form helper really pays off.

 - S




On 29 December 2010 04:08, cricket <zijn.digital@gmail.com> wrote:
On Tue, Dec 28, 2010 at 3:27 PM, euromark <dereuromark@googlemail.com> wrote:
> no, you can do that
> sometimes it is cleaner to use cake, sometimes you want the speedier
> html.
> you have to decide whats best for you.
>
> i usually use the helper for forms etc
> but tables and p/div blocks are easier with plain html - in my opinion
>
> in general, the helper syntax keeps your code "up to date"
> it wraps it, so in case the syntax changes, it can be switched
> automatically
> if you hard-code it, you need to do those things yourself.

I'll add that the only really important thing is that the form
element's name corresponds to what Cake would expect. If you're ever
unsure of what to use, have FormHelper create the element for you and
view source. Then use your HTML version using that name.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: