banditbirds Posted May 30, 2016 Share Posted May 30, 2016 Hi everyone, I'm using the prestashop guide (below) to try and direct the user to a new page in my module from a button on the left column. But the url is not recognised and I get a 500 server error. Why does the url not recognise my module php? http://doc.prestashop.com/display/PS16/Displaying+content+on+the+front+office I have customform.php in the /controllers/front of my module: <?php class banditquotecustomformModuleFrontController extends ModuleFrontController { public function initContent() { parent::initContent(); $this->setTemplate('customform.tpl'); } } And I'm generating the link in the hookRightColumn: $this->context->smarty->assign( array( 'customform_link' => $this->context->link->getModuleLink('banditquote', 'customform') ) ); Which generates: http://www.banditbirds.co.uk/module/banditquote/customform But that isn't recognised Any help appreciated!!! Thanks, Simon Link to comment Share on other sites More sharing options...
banditbirds Posted May 30, 2016 Author Share Posted May 30, 2016 I had my tpl in the wrong directory. Should have been in /templates/front 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