i like the cake php syntax in cases where lots of attributes have to
be passed dynamically (class, id, rel, onclick, ...)
this is a mess if you try to do that with plain html

but for simply <div> blocks it would be overhead to do this with
helper syntax

so there is no right or wrong. simply use the way that is most
appropriate for the specific scenario
you can usually forget about the speed - thats totally overrated
compared to other more important aspects as readability, extendability
and the dry principle


On 17 Mai, 20:13, Jeremy Burns | Class Outfit
<[email protected]> wrote:
> I went through this debate a while back and settled on using raw HTML in most 
> cases. I can't help thinking that calling some code somewhere to translate 
> the helper code and all its syntax into something so simple as <tag></tag> is 
> a waste of resource. I actually went through a (fairly large) site undoing my 
> use of helpers back to raw HTML. I think it also makes it more accessible for 
> non-Cake developers who might be working with the project now in the future.
>
> Jeremy Burns
> Class Outfit
>
> [email protected]http://www.classoutfit.com
>
> On 17 May 2011, at 15:29, Tilen Majerle wrote:
>
>
>
>
>
>
>
> > It's true, that if you use cake's HtmlHelper::tag method is slower than 
> > <legend></legend> but i prefer to use cake's htmlhelper...like u 
> > said...nice for eyes :)
> > --
> > Lep pozdrav, Tilen Majerle
> >http://majerle.eu
>
> > 2011/5/17 Flávio Ricardo <[email protected]>
> > Sometimes I think about the right way or the best way to put HTML elements 
> > on screen. The normal way is use native HTML elements like <legend>some 
> > text</legend> and I think this is more than faster use <?php echo 
> > $html->tag('legend', 'some text'); ?>.
>
> > But, for patterns use just elements generated by CakePHP is nice for our 
> > eyes. :-D So, my question is: whats the best way?
>
> > Sorry for my poor english. Best regards.
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group 
> > athttp://groups.google.com/group/cake-php
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to