Wednesday, September 22, 2010

Re: Less verbose usage of HtmlHelper?

On Sep 22, 2:40 am, AD7six <andydawso...@gmail.com> wrote:
> Was this an academic exercise in how to make the least legible code [...] ?
> You have 0 hope, assuming you got it to work, of anyone except
> yourself understanding what your example does.

Accumulator variables are a common idiom in programming. (See
http://progzoo.net/wiki/PHP:Accumulate_with_Various_Operations for
some examples.) People who know the idiom probably wouldn't find that
code so convoluted.

> PS the tag function's primary use is within other helper functions -
> not necessarily in your own view files.

Could you elaborate on this?

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: