Wigs
Member
Hi so as the title says.
im trying to create a navigation item that calls back to a php page based on a plugin.
plugin is installed in src/addons/myplugin/item/item.php
code for item.php
and on the navigation settings my callback is ... myplugin\item ::getHtml
every time i click save it get the following error
Oops! We ran into some problems.
Callback myplugin\item::getHtml is invalid (error_invalid_class).
thanks in advance im sure its a simple error and im missing something
im trying to create a navigation item that calls back to a php page based on a plugin.
plugin is installed in src/addons/myplugin/item/item.php
code for item.php
Code:
namespace myplugin\item;
class item
{
public static function getHtml(array $matches)
{
//
$response->templateName = 'myplugin_item_page';
}
}
and on the navigation settings my callback is ... myplugin\item ::getHtml
every time i click save it get the following error
Oops! We ran into some problems.
Callback myplugin\item::getHtml is invalid (error_invalid_class).
thanks in advance im sure its a simple error and im missing something