Rissinko Posted January 23, 2015 Share Posted January 23, 2015 (edited) Hi I have problems with custom page in prestashop 1.6.0.9. I created new custom page and its working via mypage.com/newpage.php but when i want create friendly url my new page missing in seo & url>add new page.. I have create controller whit this code <?php class CertificatCadouControllerCore extends FrontController { public $php_self = 'certificatcadou'; public function initContent() { parent::initContent(); $this->context->smarty->assign('currentController', get_class($this)); $this->setTemplate(_PS_THEME_DIR_.'certificatcadou.tpl'); } } please help thank you Edited January 23, 2015 by Rissinko (see edit history) Link to comment Share on other sites More sharing options...
Krystian Podemski Posted January 23, 2015 Share Posted January 23, 2015 You should use hookModuleRoutes(), check Dispatcher.php for more details. This is little example: https://gist.github.com/kpodemski/207eafc831e62d4c1cf7 Link to comment Share on other sites More sharing options...
Rissinko Posted January 23, 2015 Author Share Posted January 23, 2015 sorry but i don't understand what you want say with this piece of code. Please can you write more about it ? Link to comment Share on other sites More sharing options...
Krystian Podemski Posted January 23, 2015 Share Posted January 23, 2015 Oh sorry, I thought you want to use module, sorry, my mistake Link to comment Share on other sites More sharing options...
Rissinko Posted January 23, 2015 Author Share Posted January 23, 2015 No no i need to add new custom page or create friendly link to custom new page. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now