0

I was recently asked to create a blank page without a header and footer. I implemented that following this comment. Now the issue is that the team for whom I've created it do not want the html, body tags either that show up in view source! They have directly included a php file in the specific page-simple.tpl.php . I know this is not the right approach. If someone could point out the issue doing it this way and another approach if possible. I'd really appreciate it.

Thanks.

1 Answer 1

0

Try create a custom module and use module_load_include() it might be a better approach than the standard PHP include() then include the custom php.

2
  • thanks for your answer, I'll use module_load_include() instead. Though it still brings the question to my mind that is adding an include file in a page.tpl.php the right Drupal way? I really appreciate your help on this. Thanks.
    – zarsiwala
    Commented Sep 26, 2011 at 15:43
  • see this thread for some more details stackoverflow.com/questions/7270729/… The point about preventing WSOD seems to be most important
    – WestieUK
    Commented Sep 26, 2011 at 16:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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