Assign variable problem with img tag & includePHP
-
-
-
@ fun.Baker : working perfectly
Thanks so much, you save my day
Have another question;
file.php
In template;
HTML{includePHP file='file.php'} <div class="border tabMenuContent"> <div class="container-1"> <p>{@$some_variable}</p> </div> </div>
I got some error;
QuoteFatal error: PHP notice in file /path/to/my/root.com/www/wcf/templates/compiled/47_1_1_CustomPages.php (67): Undefined index: some_variable
-
I would suggest to use eventlistener instead of PHP includes, because PHP code inside a templates is a dirty solution. Templates are used to divide into code and output, where output is the template.