prestashop 1.6 自定义页面不起作用? [英] prestashop 1.6 custom page don't work?
本文介绍了prestashop 1.6 自定义页面不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下代码创建了一个测试控制器:创建自定义Prestashop 1.5.3.1 中的页面
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!');
}
}
我把它放在/controllers/front/MyPageController.php 中,但它不起作用.我得到了一个干净的 html 页面.
I put it in the /controllers/front/MyPageController.php and it does not work. i get a clean html page.
我错过了什么?
自定义页面链接:http://www.funtoy.co.il/index.php?controller=MyPage
修正 $php_self = 'mypage' 处的分号;
Edit 1 : fix the semicolon at $php_self = 'mypage';
谢谢.亚尼夫阿波
推荐答案
Remove cache/class_index.php
以清除缓存.
Remove cache/class_index.php
to clear the cache.
这篇关于prestashop 1.6 自定义页面不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文