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 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 > > > -- > 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 -- 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
