[eluser]Nummero2[/eluser]
Ok I did put this in the autoload.php config file:
Quote:$files = glob(APPPATH.'helpers/*_me_helper.php');
foreach($files as $key=>$file)
{
$files[$key] = str_replace('_helper.php','',substr(strrchr($file,'/'),1));
}
$autoload['helper'] = array_merge($files,array('url','news'));
Then I created a new php file in the location I want it to be named me_helper.php. There I put the following in it:
Quote:class Me extends Controller
{
function Me()
{
parent::Controller();
$files = glob(APPPATH.'helpers/*_me_helper.php');
foreach($files as $key=>$file)
{
$files[$key] = str_replace('_helper.php','',substr(strrchr($file,'/'),1));
}
$this->load->helpers($files);
}
}
But now when i type:
var_dump('$files');
in the me_helper.php file under $this->load->helpers($files); I get nothing still i´m not given all my helpers from the folder xampp\htdocs\data\use\helpers
I only see a blank screen
I now I´m a noob but can someone help me? Please :-(