In PrestaShop, the
object is something close to (but unfortunately not as flexible as) a service container (or dependency injection container) that you can have in other frameworks. This container is filled with common objects (such as cookies, current language, and so on), and services (such as Smarty).
In this chapter, we will learn how to:
lmethod and make your module multilingual
addJSmethods to improve the ergonomy in the front office
Context objectis a directory containing a list of objects. It is available in controllers and modules, and you can access it this way:
If you are not in a controller or a module, you can ...