I'm using cakephp 1.2RC3
I want to show messages with setFlash method but when i use redirect
the ajax.ctp layout is not rendered.
I'm using this code to show messages with jGrowl inside my ajax.ctp
layout

<?php if ($session->check('Message.flash')): ?>
<script>
jQuery(document).ready(function(){
        jQuery.jGrowl( "<?php echo $session-
>read('Message.flash.message');?>", {
                life: 2000,
                sticky: false,
                header: '<?php echo $header;?>',
                theme: '<?php echo $message_class;?>'
        });
});
</script>

any idea ?

thanks !

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

Reply via email to