I have a smartblog module in Prestashop 1.6 and I need to override /modules/smartblog/controllers/admin/AdminBlogPostController.php controller. How can I do it?
I've updated the file, added needed code and updated the name:
class AdminBlogPostControllerOverride extends AdminBlogPostController
I tried these ways but they didn't work for me:
- I put the file into /override/modules/smartblog/controllers/admin/AdminBlogPostController.php
- I put the file into /override/controllers/AdminBlogPostController.php
- I put the file into /modules/smartblog/override/controllers/admin/AdminBlogPostController.php
But nothing changed. Can anyone help me to find a mistake in my code?
Thanks in advance.