You are focussing your efforts in the wrong place. Your time spent pressing 
keys on the keyboard is a fraction of the time that your code will be rendered 
across the interweb. If you have a library that you are loading up which in 
turn loads up a component and then runs some functions just to output a simple 
<div class="foobar"></div> statement you are introducing massive overhead at 
run time (caching and so on set aside). What is the problem with just doing the 
job right in the first place, or even better using an IDE that helps you with 
this shortcuts?

To build a good program the efficiency has to be in the finished product, not 
in use of your time.

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 19 Sep 2010, at 02:58, Evan R. Murphy wrote:

> On Sep 18, 7:50 pm, cricket <[email protected]> wrote:
>> Better to extend HTMLHelper.
> 
> I like that idea. Could you help me understand how you might extend
> HtmlHelper to make available these global functions (or perhaps even
> better, put them in some kind of namespace)? I'm new to PHP, so it
> wasn't clear to me how to write such functions in a class. Public
> methods seem to be the default.
> 
> Thank you,
> Evan
> 
> 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 [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

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

Reply via email to