Nul-parameter: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
The 'nul' parameter is functionality in the [[ATK]] version of [[Smarty]] | 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= | {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'.