Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Helper not found

edited January 15 in Modules
In a controller, I have

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Home extends CI_Controller {

function Home()
{
parent:GDN__construct();
}

function index()
{
$this->load->library('session');
$this->load->module_helper(FUEL_FOLDER,'fuel');
$data['blog_feed'] = simplepie('http://fnpsblog.blogspot.com/feeds/posts/default?alt=rss');
$this->fuel->pages->render('home', $data);
}
}

and I get the error message:

A PHP Error was encountered
Severity: Error
Message: Call to undefined function simplepie()
Filename: controllers/Home.php
Line Number: 19

Any idea what I am missing? I have verified that simplepie_helper.php exists and is in the same directory as all of the other helpers. Other helpers are working, though I did not use them from a controller.

Thanks

Comments

  • edited 3:58PM
    I don't see in your code where you are loading the simplepie helper.
  • edited 3:58PM
    I misunderstood the documentation. I thought the "General Helpers" loaded automatically.

    Is there a list of which ones load automatically and which ones have to be explicitly loaded?

    I put in the code to load it, and it cured it.

    Thanks.
  • edited 3:58PM
    You can check the fuel/application/config/autoload.php file for the ones that are autoloaded.
  • edited 3:58PM
    Thanks
Sign In or Register to comment.