a component is like a helper for your controllers  like many
controllers might want to send email, so you could have a email
component

Sam D

On 11/16/06, Adrian Godong <[EMAIL PROTECTED]> wrote:
>
> OK, I got the big point.
>
> But pls CMIIW: anything that a Helper can do, an Element can also do the
> exact same thing, and vice versa.
>
> I'm looking at the hdCalendar component. It has a CalendarHelper that some
> function would suit to Calendar Element better (keep the primitive functions
> like Day on the helper). So I just haven't see any solid separation between
> Helper and Element.
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
> Of Dr. Tarique Sani
> Sent: 16 Nopember 2006 15:13
> To: [email protected]
> Subject: Re: Element vs Helper
>
>
> On 11/16/06, Adrian Godong <[EMAIL PROTECTED]> wrote:
> > What's the difference between element and helper? When should I use one
> over
> > another?
>
> Let me try and put it as simply as possibly
>
> Element = snippet from a template which you just render in your
> templates an example would be a dynamic menu which can be seen on all
> pages
>
> Helper = Some thing which helps you write otherwise repetitive but
> somewhat complex HTML  in your templates abstracting away the
> complexities in the call to its methods - the best example is the HTML
> helper and the Form helper.
>
> HTH
> Tarique
>
> --
> =============================================================
> PHP Applications for E-Biz: http://www.sanisoft.com
> Coppermine Picture Gallery: http://coppermine.sf.net
> =============================================================
>
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" 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