4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: raghunadhreddys on August 09, 2010, 05:57:48 PM

Title: can i use "include" in a template?
Post by: raghunadhreddys on August 09, 2010, 05:57:48 PM
can include something like this in template?if not what is the problem?

<?php
include 'something.php';
?>
Title: Re: can i use "include" in a template?
Post by: V@no on August 09, 2010, 06:33:21 PM
Yes, you can, but keep in mind that the code you include will be executed in a function, which means if it depends on some variables it must use global keyword