prestashop 1.6 custom page don't work?

蓝咒 提交于 2019-12-08 08:41:43

问题


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


回答1:


Remove cache/class_index.php to clear the cache.



来源:https://stackoverflow.com/questions/23763236/prestashop-1-6-custom-page-dont-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!