I've created a custom component that (in addition to all the other component files) has a helper file located in:
/administrator/components/com_kr_books/helpers/kr_books.php
It has an abstract class called Kr_booksHelper, within which I have a number of processing functions.
I have created a 'stand alone' module that needs to access some functions from this helper file.
When just running a call to one of the functions I get:
0 Call to undefined method Kr_booksHelper::thisFunction()
Which makes sense, if there is no connection between the 2 files.
I've tried using the following to try to include the component helper file within the module's helper file:
JLoader::import('Kr_booksHelper','/administrator/components/com_kr_books/helpers/kr_books.php');
However, I'm still getting the 'undefined method'. And I've also tried all sorts of different syntax for the path to the file, but get the same results).
I've also tried:
require_once '../administrator/components/com_kr_books/helpers/kr_books.php';
However, then the site just returns a blank white screen.
Any ideas how I should properly access the functions within the component's helper file from my stand-alone module?