hi Alan,
That's true. I'll look into using requestAction to preload, and then
try out the caching. Thanks for the link, looking at it right away.

Thanks
Femi TAIWO

On Aug 16, 3:13 pm, alan <[EMAIL PROTECTED]> wrote:
> You might consider initially loading all of your content serverside
> instead of AJAX.  Just put all the components together on one page
> using $this->requestAction() to get all the content elements.  You can
> then update and move them around with AJAX as your planning... but
> you'll see better performance if you preload the content.
>
> Also - you are really going to need to cache your data... I would
> cache each of the requestAction calls individually.
>
> http://bakery.cakephp.org/articles/view/ecache-easy-per-user-or-per-a...
>
> thanks,
> -alan-
>
> On Aug 15, 6:54 am, Femi Taiwo <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I need to includemultiplecontrollers& views on a single page. Yes this 
> > sounded easy at first, especially after I readCreating Reusable Elements 
> > with requestAction
> > until i found the possible overheads.
> > This is what I'm trying to do:
> > Build an application that allows the administrator to add order and move 
> > modules around on different parts of the application....
> > I have a couple of models for this. One is PortalTab, second is 
> > PortalModule and the third that ties these two is PortalTabsPortalModule
> > a new module is registered into the portal by creating an entry for it in 
> > the portal_modules table. To make the module available for use, I put it in 
> > an existing
> > portal_tab record( as in i insert portal_tab_id and the portal_module_id 
> > into the portal_tabs_portal_module table) . By visiting the tab using a 
> > controller action e.g /tabs/viewtab/13, tab with id of 13 has many modules 
> > attached to it, and displays them accordingly. A lot of thot has also gone 
> > into what part of the page which module shows and their order.(1)I have 
> > viewtab.ctp which has a loop that runs through the $modulesToLoad (e.g) 
> > variable and loads each one via AJAX .
> > While this works quite well, the bad side to that the number of initial 
> > calls made to the server while it's loading via ajax:
> > number of calls =the total number modules. I forsee having on the average 
> > 4/5 modules per tab group. Some may be just two.
> > The project is growing quite fast especially with this mode of adding and 
> > working with modules dynamically, allowing the portal to have a loosely 
> > defined structure.I've also be able to effect calls using ajax and updating 
> > another block on the page.
> > Apart from the overhead, what other possible failings does this method 
> > have? Otherwise, what do I do instead?
> > Thanks!
> > Femi TAIWO.


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