user3434470
user3434470

Reputation: 11

Create new custom page for PrestaShop 1.5

I have a big problem, please I really need some help. I am trying to add a new custom page for my Prestashop and I can't. I don't want to add it thru admin panel, I did next thing:NewPageController.php (controller->front..), newpage.php in root folder +newpage.tpl in theme directory(not default theme, my theme). I get something like http://mydomain.com/en/index.php?controller=newpage , and my page is completly empty. There is NewPageController.php:

Thanks everybody a lot. I am waiting answear.Thank you!

Upvotes: 1

Views: 1033

Answers (1)

NetPlayer
NetPlayer

Reputation: 94

Make a new module containing your controller (extending ModuleFrontController) pointing to your view .tpl . The new page will be accessible on the URL [base url]/?fc=module&module=[your module name]&controller=[your controller name]. Advantage of this is that your view will automatically include the site's theme layout and all you will have to implement is the rest of the content while sametime you will have available all core functions, variables and context of the controller.

Official Prestashop 1.5 documentation

Upvotes: 0

Related Questions