[eluser]WarDoGG[/eluser]
What this is doing is, it is returning the value FALSE to the calling method.
What i want is, the script execution to stop midway in the library itself without returning to the controller.
[quote author="bretticus" date="1269056825"]There are output functions, etc to run before the index.php script is done (which is the only script that ever really runs.) If you call die() within the controller those functions, etc will never be called (hence a blank page.) I think what you want to do is call return instead.
Code:
class Mylibrary
{
function checkIfExists()
{
echo "something something";
if ( $not_exists )
return FALSE;
// other code below...
}
}
[/quote]