I am doing some queries in /beforeRender()/ because I have to set variables in the layout. When users Log In in my system, they can change the order of the elements (little calendar, etc.) of the layout. And then I save this order in the database. So I am using the /beforeRender()/ function to set the order of the elements in the layout when the user load a page.
For the JavaScript part, what I can do ? I have only 2 links : <?php echo $javascript->link('prototype') ?> <?php echo $javascript->link('scriptaculous') ?> and I am using them with drag & drop, InPlaceEditor, etc. Thanks your your help. Chris Hartjes a écrit : > On Thu, Apr 24, 2008 at 8:33 AM, Pierre MARCOURT > <[EMAIL PROTECTED]> wrote: > >> I am using a lot Ajax and Scritptaculous, is that a problem ? Almost my >> entire site is in Ajax. >> > > Yes, that is bound to be slow without a lot of thought on the use of > unobtrusive javascript. > > >> In my app_controller.php, I am using the beforRender() function where I do >> some queries. Is that function slow down the website ? >> >> > > Why are you doing that in beforeRender()? Is there any reason why you > couldn't do it in controller methods. > > -- Pierre [EMAIL PROTECTED] _____________________ CableOrganizer.com 5610 NW 12th Ave, suite 214 Ft.Lauderdale, FL 33309 Phone: 954-861-6310 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---