Assign variable problem with img tag & includePHP

  • Please help;


    Code
    1. {assign var='img' value='<img src="path/to/img.gif" alt="" />'}


    In template;


    HTML
    1. {img}


    Why the output only code not the image it self?

  • @ fun.Baker : working perfectly :thumbsup:


    Thanks so much, you save my day ;)


    Have another question;


    file.php


    In template;

    HTML
    1. {includePHP file='file.php'}
    2. <div class="border tabMenuContent">
    3. <div class="container-1">
    4. <p>{@$some_variable}</p>
    5. </div>
    6. </div>


    I got some error;


    Quote

    Fatal error: PHP notice in file /path/to/my/root.com/www/wcf/templates/compiled/47_1_1_CustomPages.php (67): Undefined index: some_variable