create controllers/admin/AdminPageController.php with the follwing content:
class AdminPageController extends AdminController
{
public function initContent()
{
parent::initContent();
$smarty = $this->context->smarty;
$smarty->assign('test', 'test1');
}
}
Delete: /cache/class_index.php
Create: adminhemesdefaultemplatecontrollerspagecontent.tpl
zzz{$test}zzz
At BackOffice -> Administration -> Menus -> [Add New]:
Name: Page
Class: AdminPage
Parent: Catalog
Click the [Save] button and the menu item should appear at the "Catalog" menu.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…