yanivabo Posted May 20, 2014 Share Posted May 20, 2014 (edited) hello. I have create a Test controller using this code : 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 Thanks. yaniv abo Edited May 20, 2014 by yanivabo (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 go to cache directory and remove class_index.php file then go to preferences > seo & urls add new page, from dropdown select "mypage" (your controller) and define other fields voila 2 Link to comment Share on other sites More sharing options...
Araviel Posted October 12, 2014 Share Posted October 12, 2014 Okay so i followed all tutorials here and i've an issue : My custom page here is working : http://www.araclouds.com/index.php?controller=SliderAtoMods BUT... ONLY with the "no redirection" option in the dropdown menu, if I change to 301 or 302 i've a 404 error... if someone here can explain me why... thanks in advance there is my php file <?php class SliderAtoModsControllerCore extends FrontController { public $php_self = 'atomods'; public function init() { parent::init(); } public function initContent() { parent::initContent(); $this->setTemplate(_PS_THEME_DIR_.'modatos.tpl'); } } ?> thanks in advance Link to comment Share on other sites More sharing options...
vekia Posted October 13, 2014 Share Posted October 13, 2014 you created this new page under preferences > seo & urls ? Link to comment Share on other sites More sharing options...
Araviel Posted October 13, 2014 Share Posted October 13, 2014 Hi vekia, yes I deleted the cache_index and added the page under seo & urls and this is not working with the two redirection avaibles, only working when "no redirection is selected" Link to comment Share on other sites More sharing options...
Recommended Posts