Jump to content

Nul-parameter: Difference between revisions

From NusaATK
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The 'nul' parameter is funtionality in the [[ATK]] version of [[Smarty]] where you can the first unnamed parameter of a tag.
The 'nul' parameter is functionality in the [[ATK]] version of [[Smarty]] which lets you pass the first parameter of a tag without a name.


Example:
Example:
Line 5: Line 5:


Instead of:
Instead of:
  {tag parametername='nulparameter'}
  {tag parametername="nulparameter"}


It is primarily used in tags that have only one parameter, making it easier to use.
It is primarily used in tags that have only one parameter, making it easier to use.


Note: The name is derived from the dutch word for zero, 'nul'. Not to be confused with 'null'.
Note: The name is derived from the dutch word for zero, 'nul'. Not to be confused with 'null'.

Latest revision as of 20:11, 18 January 2007

The 'nul' parameter is functionality in the ATK version of Smarty which lets you pass the first parameter of a tag without a name.

Example:

{tag nulparameter}

Instead of:

{tag parametername="nulparameter"}

It is primarily used in tags that have only one parameter, making it easier to use.

Note: The name is derived from the dutch word for zero, 'nul'. Not to be confused with 'null'.