This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

webmaster
webmaster

Hello,

I want to know how we could add sperate class and call their functions on controller or model or everythings standard for this. for example I want to add SimpleHTMLDOM and be able to call function within my plugin.

Thanks

Tschallacka
Tschallacka

Okay, to be clear your question is:

I have the library SimpleHTMLDOM. Where do I place it and how do I load it into my plugin?

webmaster
webmaster

yes I want to know how to load it into my plugin and call their functions into controller or somewhere else.

for example I download DOM into /plugins/me/htmls/vendor/dom this class contain some functions for example public function geturl I want to know how can I use geturl function in my controller or specified url

Last updated

webmaster
webmaster

I found solution. if you have same problem just extend your class to your plugin and enter namespace

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.