Unable to load the requested file: helpers/langauge_helper.php

20.7k Views Asked by At

I am using CI Merchant and have copied all the files needed into the correct folders and added the code to do a test purchase. When I load the controller I get this message:

Unable to load the requested file: helpers/langauge_helper.php

How can I get codeigniter to give me more information on why its giving this message? What would cause this?

3

There are 3 best solutions below

0
On BEST ANSWER

Loading helper file in constructor works too like this

$this->load->helper('custom'); //custom_helper.php

Reference

You might be loading helper in a wrong way

1
On

i was loading the helper in the construct of the controller and moved it into autoload and that fixed it. No idea why it didnt work in the construct.

0
On

It works as below mentioned in CodeIgniter 2.X:-

If helper file inside helpers folder named as language_helper.php Then you can load it in controller anywhere (not only in constructor) by using

$this->load->helper('language');

Make sure your helper class naming convention is correct it must end with _helper.php