Jump to content

1.6 Module in 1.7 not showing tpl file in hook


Recommended Posts

Hello,

 

I started to test my modules with 1.7.

I have a module which hooks to hookDisplayTop:

 

   public function install()
    {

        return parent::install() &&
            $this->registerHook('header') &&
            $this->registerHook('backOfficeHeader') &&
            $this->registerHook('displayTop');
    }

 public function hookDisplayTop( $params )
    {

..

.....

return $this->display( __FILE__, 'views/templates/front/hookDisplayTop.tpl' );

}

 

 

But the tpl file is not added also no JS, does anynone know why this hook does not work as before?

Is there a detailed change list or migration guide?

 

Horrible 1.7

 

Link to comment
Share on other sites

Hi,

many thansk for the response.

 

javascript is now added but the

$this->registerHook('displayTop')

 

and the regarding fucntion

 

public function hookDisplayTop( $params )

 

are not executed.

 

Any hint why it does not execute? is the function renamed?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...