[eluser]davidbehler[/eluser]
Sure, just place a file with the name of your helper in /application/helpers and add it to the autoload config file/load it manually.
E.g. place a file called debug_helper.php in /application/helpers with this content:
Code:
<?php
function pre($var)
{
echo '<pre>';
if(is_array($var)) {
print_r($var);
} else {
var_dump($var);
}
echo '</pre>';
}
?>
Now you can either load the helper via $this->load->helper('debug'); or add it to application/config/autoload.php config.