prestashop 1.6自定义页面don';不行?
我已经使用以下代码创建了一个测试控制器: 我把它放在/controllers/front/MyPageController.php中,它不工作。我得到了一个干净的html页面 我错过了什么 链接到自定义页面: 编辑1: 将分号改为$php_self='mypage' 谢谢。prestashop 1.6自定义页面don';不行?,prestashop,Prestashop,我已经使用以下代码创建了一个测试控制器: 我把它放在/controllers/front/MyPageController.php中,它不工作。我得到了一个干净的html页面 我错过了什么 链接到自定义页面: 编辑1: 将分号改为$php_self='mypage' 谢谢。 yaniv abo删除cache/class_index.php以清除缓存。删除cache/class_index.php以清除缓存。我添加了分号,仍然是相同的问题。我添加了分号,仍然是相同的问题。 class MyPage
yaniv abo删除
cache/class_index.php
以清除缓存。删除cache/class_index.php
以清除缓存。我添加了分号,仍然是相同的问题。我添加了分号,仍然是相同的问题。
class MyPageController extends FrontController
{
public $php_self = 'mypage';
public function init() {
parent::init();
}
public function initContent() {
parent::initContent();
die('test!');
}
}