- Code: Select all
function after_action_login(){
echo "<script>
alert('This is a popup message');
</script>";
}
the code above is part of my ApplicationDelegate.php.
My problem is that after the alert box has displayed and the user clicks ok to close the window I get this error:
Warning: Cannot modify header information - headers already sent by (output started at .../conf/ApplicationDelegate.php:34) in .../xataface/Dataface/AuthenticationTool.php on line 281
Any ideas?