[eluser]wiredesignz[/eluser]
And here is Modular Extensions debug_helper.php for those that are interested.
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Modular Extensions - HMVC
*
* Debug Helper
*
* Version 4.0.29 (c) Wiredesignz 2008-04-28
*/
/**
* Debug
*
* Lists object_vars for an object
**/
function debug($_this)
{
if (is_object($_this))
{
echo '<pre>',get_class($_this),' Object: '."\n",
print_r(array_keys(get_object_vars($_this)), TRUE),'</pre>';
echo '<br />';
}
}
/**
* Debug_in
*
* Dumps contents of an object or array
**/
function debug_in($_this)
{
if (is_object($_this))
{
echo '<pre>',get_class($_this),' Object: '."\n",
print_r(get_object_vars($_this), TRUE),'</pre>';
echo '<br />';
}
if (is_array($_this))
{
echo '<pre>',
print_r($_this, TRUE),'</pre>';
echo '<br />';
}
}