tips:dontusedieDon't use die() to debugJoomla! 1.5 includes the ability to optionally store the user session in the database. In PHP 5, because of the order in which it does things, an connection to the database will be closed before it fires the session handlers.
As a result of this, the common-place practice of using the
or:
In order to stop execution gracefully, you need to use the following code: Correct way to gracefully stop execution echo 'Test'; $mainframe->close(); If you are developing your own component, you might like to include your own utility function to provide this functionality: Function to stop execution with a message
function stop($msg = '')
{
global $mainframe;
echo $msg;
$mainframe->close();
}
|


