one advantage to using elements is that in 1.2 you can cache them for
periods of time thus helping your performance as well

On 5/9/07, Tane Piper <[EMAIL PROTECTED]> wrote:
>
> I actually like to mix the two.  What I find best is to create an
> element, and put the rA() inside it.  Then I can use element caching
> to speeding things up, and reduce the load.
>
> Of course, you may find that when you update data on your site, these
> elements don't update right away - what you need to do is in your
> model, in the afterSave method is to use the PHP function unlink() and
> delete the cached element.
>
> Tane
>
> On 5/8/07, buzznut <[EMAIL PROTECTED]> wrote:
> >
> > As I have been working on my app, I find myself using elements quite
> > often. I am wondering what the advantage/disadvantage is to just using
> > a $this->requestAction call in a view and using the normal view file
> > associated with the action instead of creating an element.
> >
> > Thanks for any comments or feedback.
> >
> >
> > >
> >
>
> >
>


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

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

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