I meant something like this.
<div id="content">
<!-- <cake:nocache> -->
<?php if ($session->check('Message.flash'))
$session->flash(); ?>
<!-- </cake:nocache> -->
<?= $content_for_layout ?>
</div>
I am trying to imagine how both FF and cake would be parsing the
content of the view to determine what to do. I am thinking FF will
likely ignore your cake:nocache tags and cake might just read them,
not sure how it was implemented; but perhaps they are just looking for
them and will skip anything in between giving you what you want.
Regards,
Alfredo
On Sun, Feb 15, 2009 at 8:57 PM, brian <[email protected]> wrote:
>
> Then I would never see what's inside.
>
> On Sun, Feb 15, 2009 at 8:40 PM, Alfredo Quiroga-Villamil
> <[email protected]> wrote:
> > I wonder what will happen if you wrap the cake:nocache tags with a comment
> > <!-- -->
> > Have you tried that?
> > Regards,
> > Alfredo
> >
> > On Sun, Feb 15, 2009 at 8:35 PM, brian <[email protected]> wrote:
> >>
> >> I have the following in my main layout:
> >>
> >> <div id="content">
> >> <cake:nocache><?php if ($session->check('Message.flash'))
> >> $session->flash(); ?></cake:nocache>
> >> <?= $content_for_layout ?>
> >> </div>
> >>
> >> Because it's in the layout, views that I don't want cached won't have
> >> the cake tags stripped This is causing some styling issues, at least
> >> in FF. (why it doesn't just ignore the tag I don't know.) Is anyone
> >> else seeing this?
> >>
> >> I realise that those views for which this is happening won't have
> >> CacheHelper sifting through the markup to remove the tags, but does
> >> anyone have an idea for dealing with this?
> >>
> >>
> >
> >
> > >
> >
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---