Sociallogin Posted May 14, 2012 Share Posted May 14, 2012 I have created a module of prestashop that is working fine. I have also override core class of prestashop and created /override/controllers/AuthController.php Content of Autocontroller.php is <?php class AuthController extends AuthControllerCore{ public function displayContent(){ global $smarty; $smarty->display(_PS_MODULE_DIR_.'sociallogin/sociallogin.tpl'); $this->processAddressFormat(); parent::displayContent(); } } ?> It's working fine as desired but how can i package with module named sociallogin. Module is also working fine with this controller. Only the problem is, how to create zip file for others to install module as well as this controller class?If i zip module file, it's installed and working fine then if i mannually place file AuthController.php at /override/controllers when module installed, then it's working fine but how to do packaging this Autocontroller.php with module? Thanks in advance. Link to comment Share on other sites More sharing options...
Sociallogin Posted May 14, 2012 Author Share Posted May 14, 2012 If i want to override change single tpl file, do i need to copy all theme and make new theme?I just want to add few functionality in single .tpl file. There is no hook provided. Do I need to copy all theme and then override single file? Link to comment Share on other sites More sharing options...
Recommended Posts