On Tuesday, April 5, 2011 1:52:48 PM UTC-4, VP wrote: 
>
>
>
> On Apr 5, 11:09 am, Massimo Di Pierro <[email protected]> 
> wrote: 
> > My rule is: 
> > 
> > - use html in views 
> > - use html helpers in controllers and models 
> > - always use URL to generate urls (*) 
>
>
> Should HTML helpers appear frequently in controllers/models?   I can 
> see in some ajax stuffs, but other than that, probably not much?  If 
> true, how useful are html helpers?  Just a thought.

 
Good point. Note, the FORM and SQLFORM helpers are obviously heavily used, 
and they comprise many other helpers, such as table helpers, DIV, etc. You 
can also use the TAG helper to parse HTML into a tree structure of helpers 
and then do server-side DOM parsing with the helpers.

Reply via email to