I'm probably doing something stupid but it seems to be autoloading my helper class |
Hi. I have a helper class called my_url_helper. This has some simple functions called css_url, js_url, and image_url to help me load them. It works great. Then I noticed I had forgot to load the helper on half my pages, but it still works and I don't know why.
Things I've tried. I checked and double checked the autoload file to make sure I hadn't added it to it. I haven't I commented out all the parts in my code where I load the helper in case codeigniter somehow remembered it. It still works. I wondered if the file had just been cached or something, so I added another function to the helper class called poo_face that simple returns a string saying "pooooooo face". I added a call to the poo_face function, and it worked despite the helper not being loaded. I thought I would ask here in case there is something that I might have overlooked. Here is a one of my controllers and the view that has the functions. PHP Code: <?php Code: <!DOCTYPE html> |
Welcome Guest, Not a member yet? Register Sign In |