Page 1 of 1

Help for building my first plugin

Posted: 28 Jun 2020, 15:27
by pollevr
Hi,

in Mantis 2.24.1 I'm trying to build my first plugin following the doc at the url https://www.mantisbt.org/docs/master/en ... s.building but I get the follow error:

Code: Select all

Fatal error:  Uncaught Error: Call to undefined function plugin_page() in /web/htdocs/www.mysite.com/home/mantis/plugins/Example/pages/foo.php:2
(I changed mysite url)


What I wrong?

If necessary, I attached my code.

Thank you,
Cristian

Re: Help for building my first plugin

Posted: 29 Jun 2020, 13:07
by pollevr
I found that I must call the plugin like this:

Code: Select all

/mantis/plugin.php?page=MyPlugin/foo

Re: Help for building my first plugin

Posted: 29 Jun 2020, 19:46
by Starbuck
Questions about plugins might get more views or responses in the Plugins forums.

Re: Help for building my first plugin

Posted: 29 Jun 2020, 19:55
by pollevr
Thank you Starbucks!