Jump to content

Create Includable Block/div With Module


Recommended Posts

Hi,

 

I have created a module that creates a custom page, within this page I want to call a hook that includes my own piece of code. Right now this code is written inside de module's main file. =>

In my module's main file I installed my hook 'myHook', and added a function 'hookmyHook'. Within this function I generate smarty html, add some js and css with context->controller->addJs/Css and return the html.

 

When I call this hook from the html in a controller I get the smarty html, yet the js and css files are not included.

 

I have the idea that the way that I am doing this is incorrect. 

 

Does anyone know how to include the css, or what the correct way of implementing a blocklike hook is.

 

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...