I have an external application I have to add in my custom feature of Open Atrium. There is some JavaScript files I have already added to the module, and some CSS files.

To implement the application, I need to include an HTML file in the module's output. In which way can I do this?

  • Well, you can always do an include_once in your template. – Countzero Feb 18 '12 at 8:38
  • can include the total html file to the custom module – ranjitpradhan Feb 18 '12 at 10:01

You can simply add <?php print file_get_contents('my_file.html'); ?> in your module's template file, or even do that inside your module's callback function, and return it as output.

It's a little bit messy, but including off-site files or scripts is always a little messy.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.