A
A
Anton2019-02-08 10:48:11
Smarty
Anton, 2019-02-08 10:48:11

How to comment out code in smarty?

Good afternoon.
How to comment out the code in this hellish thing? I mean not just leave a comment, but hide it from now until now?

{if !empty($int)}
        <h2>{$cfg.int.sec_name}</h2>
        {for $i=0, $iCount=count($int); $i<$iCount; $i++}
          <div class='el'><a href='/{$cfg.int.sec_url|trim:'/'}/{$int[$i].dot_url|trim:'/'|default:$int[$i].dot_id}'>{$int[$i].dot_name}</a></div>
        {/for}
        <br>
        <a href="/{$cfg.int.sec_url|trim:'/'}">Все статьи →</a>
      {/if}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-02-08
@Eridani

https://www.smarty.net/docsv2/en/language.basic.sy...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question