Jump to content

Call module function through link


hakeryk2

Recommended Posts

Hello developers!

 

I am developing my first module and I am having a little question. In my extend Module class I have public function that is doing something but I would love call this function through link (for cron purposes). Is this is possible?

 

IE

 public function myFunction()
 {
    // do something here
 }

And is it possible to create a link with a path to module that is triggering this function?

If not then how should I create another .php file that will be ok to call through link?

 

Any help will be appreciated, I am rookie.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...