Emkrypted Posted March 2, 2016 Share Posted March 2, 2016 Hi! I really do not know what it is happening but I have a hook that it did not hook I do not get it: I have my hook in modules/mymodule/mymodule.php The php code is: public function hookModuleRoutes() { return array('module-mymodcomments-comments' = array('controller' => 'comments', 'rule' => 'product-comments{/:module_action}{:/id_product}/page{:/page}', 'keywords' => array('id_product' => array('regexp' => '[\d]+', 'param' => 'id_product' ), 'page' => array('regexp' => '[\d]+', 'param' => 'page' ), 'module_action' => array('regexp' => '[\w]+', 'param' => 'module_action' ), ), 'param' => array('fc' => 'module', 'module' => 'mymodcomments', 'controller' => 'comments' ) ) } Then I put this in the install function: public function install(){ if(!parent::install()){ return false; } if(!$this->loadSQLFile($sql_file) || !$this->registerHook('displayProductTabContent') || !$this->registerHook('ModuleRoutes')) { return false; } } but i do not know why it does not work, it did not display me any error but it does not work and I try to see the different hooks that mymodule is using and ModuleRoutes does not appear at all can you help me? Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now