cfunction.fetchzone.php
Tags
Table of Contents
- jtpl_cfunction_common_fetchzone() : string
- cfunction to fetch the content of a zone into a tpl var
Functions
jtpl_cfunction_common_fetchzone()
cfunction to fetch the content of a zone into a tpl var
jtpl_cfunction_common_fetchzone(jTplCompiler $compiler[, mixed $params = array() ]) : string
{fetchzone 'myVar', 'myModule~myzone', array('foo'=>'bar)}
{if $myVar !== ''}
{$myVar}
{/if}
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $params : mixed = array()
Return values
string —the php code corresponding to the function content
