photo

Richard Wisniewski

shared this question
5 years ago

Statistics

0
Comments
267
Views

Relates to

Share

1
votes

Addon user action help

I am trying to write an action with my addon.

I know I am doing this wrong but would like some coaching.

I currently have a html statement on my main.html file

  1. <a href="index.php?action=mycomps_add_listing">Test</a>
My addon function is this:

  1. function mycomps_add_listing() {
  2. return "You Clicked A Button!";
  3. //some SQL will go here
  4. }
When I click the link in the anchor tag, It will display a blank page in my content area.

Can someone explain how to correctly achieve this action?

Thanks as always and Happy New Year!

Leave Comment

photo

Attach files...

The file must be a jpg, gif, png, bmp, ico, pdf, doc, rtf, txt, zip or rar no more than 20M