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!