At this point, we have a DB request (sometimes almost the same request) in different files of the module:
mymodcomments.php. So it might be a good time to create the
MyModComment object model. Create a directory named
classes in your module's directory and place a file named
MyModComment.php in it.
The naming convention of PrestaShop is as follows:
First, create your object class (name it as described previously) and extend it from
ObjectModel. You will then have ...