Skip to content

How to create helper for component #717

Answered by LordRazen
EvDoorne asked this question in Q&A
Discussion options

You must be logged in to vote

JCB -> Joomla Components -> Your Component -> Libs & Helper:

You can add your function there:

public static function yourFunction() {}

And call them via [[[Component]]]Helper::yourFunction() in other places.
The [[[Component]]] will be converted to your components class.

Beside this, you can go to JCB -> Dashboard -> Wiki, there're plenty of videos with the keyword "Helper" linked there.

Hope this helps.

Replies: 1 comment

Comment options

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