Are new added controllers to Prestashop controllers folder deleted after update?

174 Views Asked by At

I feel the answer is no, but i am not sure yet because I am a newbie in Prestashop.

Situation:

I need to create a custom page in Prestashop without using CMS (due to its limitations). I found here in SO that the one manner is :Create custom page in Prestashop 1.5.3

I just want before implementing this to be sure that the future updates don't break the behaviour. Thank you very much.

1

There are 1 best solutions below

6
On BEST ANSWER

You have to add the Controller in the override, not the core. Then it will not get updated (like the core, which just gets replaced by the update)

Core controller are located in:

../Controllers/*

These will be overwritten when you update

Overrides / Extension Controllers can be put in

../override/controllers/*

and will not be touched by an update!