Edit the app/views/layouts/ajax.ctp layout file and add the following at the
very beggining:
<?php echo $this->element('nocache', array('cache'=>'+1 day')); ?>
Then create an app/views/elements/nocache.ctp file with:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de ZeEight
Enviado el: Lunes, 23 de Abril de 2007 10:36 a.m.
Para: Cake PHP
Asunto: Pagination with AJAX in 1.2 rendering error...
It renders the entire page (with updated results) inside of the
textWrapper DIV. Do I need to make a different view and corresponding
function in the controller with a ($layout = none;) sort of thing and
have AJAX render that? A bit confused here as to how this is supposed
to work without re-rendering the entire layout.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---