It seems that I need to get the $template value in my extension but I can not reach it.
Actually I downloaded the ACME-DEMO viewtopic.php?f=461&t=2211276. In this system, there's a file /tests/mock/template.php, which is used to mock class template. But it doesn't work .
When proceeding my extension it tells me:
Code: Select all
Call to protected method phpbb\template\twig\twig::get_template_vars() from context 'acme\demo\controller\main' in D:\xampp\htdocs\phpBB3v3\ext\acme\demo\controller\main.php on line 52