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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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