Loading a helper elsewhere than the autoload.php?

Posted by drpcken on Stack Overflow See other posts from Stack Overflow or by drpcken
Published on 2011-01-29T15:21:01Z Indexed on 2011/01/29 15:26 UTC
Read the original article Hit count: 287

Filed under:
|
|

I inherited a project and I'm cleaning up a bit and trying to finish it. I noticed that they used (or wrote) a breadcrumb helper. It is in my helpers folder and is named breadcrumb_helper.php It has a single function to build a breadcrumb menu with links and pass it to the view breadcrumbs.php. Here's the code:

function show_breadcrumbs()
{
    $ci =& get_instance();
    $ci->load->helper('inflector');
    $data = '';

    //build breadcrumb and store in $data

    $this->load->view("breadcrumbs", $data)

}

I was trying to figure out how this helper worked and I checked the autoload.php but there is no reference to the helper in there. In face here is my autoload:

$autoload['helper'] = array('url','asset','combine','navigation','form','portfolio','cookie','default');

This show_breadcrumbs() function is used quite a bit in some of my pages so I'm confused as to how its loading if it isn't in the autoloader. It is called like this in a few of my pages: <?=show_breadcrumbs()?>

What am I missing? Why isn't this in my autoload? I even did a global search and couldn't find anywhere the helper is being loaded.

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter