Jelix 1.6.40

function.counter.php

Tags
subpackage

jtpl_plugin

author

Thibault Piront (nuKs)

copyright

2007 Thibault Piront

link
http://jelix.org/
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

Table of Contents

jtpl_function_common_counter()  : mixed
function plugin : Increment and print a counter on all calls.

Functions

jtpl_function_common_counter()

function plugin : Increment and print a counter on all calls.

jtpl_function_common_counter(jTpl $tpl[, string $name = '' ][, bool $print = true ]) : mixed
{for $i=0;$i<10;$i++}{counter 'name', true}{/for}
Parameters
$tpl : jTpl

The template

$name : string = ''

The name of the counter

$print : bool = true

Print the counter or not

Return values
mixed

Search results