Skip to content

Access component helper class/functions from external file? #821

Answered by cpaschen
cpaschen asked this question in Q&A
Discussion options

You must be logged in to vote

OK ... found the issue.
The problem was that I was manually updating the admin helper file (the section where site and admin custom code goes - directly in the helper php file) and testing on the front-end, but didn't run a compile to push those changes to the front-end helper file as well.

So the module was running, trying to load the helper file, but the class was already loaded from the site helper file/class, but that class didn't have some of the functions in it that were added directly to the admin helper file.

SOLUTION - run a compile. Functions are now there on both site and admin and work as they should.

LESSON LEARNED - JCB is very flexible and allows you to make dumb errors lik…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cpaschen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant