prestashop 1.6 custom page don't work?

2019-05-31 03:10发布

I have create a Test controller using the code in : Create Custom page in Prestashop 1.5.3.1

class MyPageController  extends FrontController
{
    public $php_self = 'mypage';

public function init() {
    parent::init();
}


public function initContent() {
    parent::initContent();
    die('test!');
    }
}

I put it in the /controllers/front/MyPageController.php and it does not work. i get a clean html page.

What am I missing ?

link to custom page : http://www.funtoy.co.il/index.php?controller=MyPage

Edit 1 : fix the semicolon at $php_self = 'mypage';

Thanks. yaniv abo

标签: prestashop
1条回答
别忘想泡老子
2楼-- · 2019-05-31 03:40

Remove cache/class_index.php to clear the cache.

查看更多
登录 后发表回答