Mukesh Ravi Posted June 27, 2013 Share Posted June 27, 2013 Hi Everyone, I am using Prestashop 1.5.4 I want to create a new Page for front-end and show some data from database. So please tell me how to create a page, controller and class for front-end. Thanks Link to comment Share on other sites More sharing options...
vekia Posted June 27, 2013 Share Posted June 27, 2013 check this Nemos tutorial: http://nemops.com/creating-new-pages-in-prestashop/ Link to comment Share on other sites More sharing options...
Mukesh Ravi Posted June 28, 2013 Author Share Posted June 28, 2013 Hi Vekia,, When I install the testmodule and configure it, It is showing Exception [PrestaShopException] Method of module can't be found at line 594 in file controllers/admin/AdminModulesController.php 588. $echo = ''; 589. if ($key != 'update') 590. { 591. // We check if method of module exists 592. if (!method_exists($module, $method)) 593. throw new PrestaShopException('Method of module can\'t be found'); 594. 595. // Get the return value of current method 596. $echo = $module->{$method}(); 597. } 598. AdminModulesControllerCore->postProcessCallback - [line 717 - controllers/admin/AdminModulesController.php] - [0 Argument] AdminModulesControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - adminpanel/index.php] - [0 Argument] Please help. Also provide allproducts.php file because it is also not working on front-end. When I try to access www.mydomain.com/index.php?fc=module&module=testmodule&controller=allproducts it is showing 404 error. Link to comment Share on other sites More sharing options...
JasonWang Posted January 21, 2014 Share Posted January 21, 2014 (edited) check this Nemos tutorial: http://nemops.com/creating-new-pages-in-prestashop/ What If I'd like to create a new page, which has its parameters hide in the url. such as http://xxx.com/module/ moduleName / controllerName / itemId. I want to create several piece of content about my products and website, like a small blog. Could you give me some advices? Thank you in advance. Edited January 21, 2014 by JasonWang (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts