Welcome Guest, Not a member yet? Register   Sign In
Including a file in a template.
#1

[eluser]lszanto[/eluser]
If I wanted to include a file in a template can it be done using syntax such as {include 'navigation.php'} or must I use php commands?

Thanks in advance, Luke
#2

[eluser]gtech[/eluser]
edit:

ignore I have just realised what you meant, and it seems a tad unauthodox what you want to do, can you not include the library outside the {} tags.
#3

[eluser]lszanto[/eluser]
If anybody was interested I updated the parser library to enable myself to use {include 'sidebar'} which accesses the sidebar.php file and enables it to have data replaced by the parser. If anybody wants the solution/code please feel free to ask.




Theme © iAndrew 2016 - Forum software by © MyBB