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
Remove
cache/class_index.php
to clear the cache.