© Arnaldo Pérez Castaño 2017

Arnaldo Pérez Castaño, PrestaShop Recipes , 10.1007/978-1-4842-2574-5_4

4. Classes and Controllers

Arnaldo Pérez Castaño

(1)Havana, Cuba

The concept of class comes from the Object Oriented Programming (OOP) paradigm . In OOP the concepts of object and class are highly related. Objects are the main elements of this paradigm and they try to find correspondence with “real-life” objects. We could have an object named Dog that tries to represent a real-life dog incorporating many of its attributes (color, height, and so on) and its functionalities (bark, eat, sleep, and so on). To be able to create the Dog object, we would need a “blueprint” to follow or a “model” to build from; this blueprint or model is the class.

The class ...

Get PrestaShop Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.