> Ok .. I understand you can call it from the view .. but if you look 4
> posts above, my goal is to call it inside a controller, like you would
> a flash():
Just set() a variable and have the layout look for said variable and
create the div for it.
In controller:
$this->set('modal', array('Success!', 'This is valid'));
In view:
<?php
if(isset($modal)):
//echo div/js for modal
endif;
?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---