Page 1 of 1

Include .php files?

PostPosted: Thu Aug 28, 2014 8:36 pm
by dbrooke0830
Hello, I have a .php app that I built that I need to include between the header / footer of my Bolt site. How would
I do this?

Re: Include .php files?

PostPosted: Fri Aug 29, 2014 3:17 pm
by dpfavand
Probably the most elegant way would be to write the php file as a Bolt extension that declares a Twig function. Then call the function from the template. See this section of the docs for details:, the top of the page has information on how to create an extension - use the wizard to create an empty extension with a Twig function and then drop your php code into it at the right point.

Re: Include .php files?

PostPosted: Mon Sep 15, 2014 4:48 pm
by dbrooke0830
Thanks for the reply.. was starting to think this forum is dead. :)
I'll take a look at that today.

Re: Include .php files?

PostPosted: Wed Sep 17, 2014 9:51 pm
by dbrooke0830
I've looked at the extensions link and don't know that it will help me in my case.

To clarify my question, I've updated my issue to a new post here: