CNCat 4.3 User Manual
Previous
|
Table of Contents
|
Next
Function Call
Format 1: {function_name()}
Format 2: {function_name(parameter, ….)}
Example 1: {cn_str($CNCAT[item][item_title])}
Example 2: {cn_date($CNCAT[item][item_insert_date])}
An expression can be used as the function parameter (variables, constants, operations, without brackets).
For the sake of safety only the following functions are available:
- cn_str(string) – prepares a string for display on a page (analogue of htmlspecialchars());
- cn_date(mysql_date) – formats data;
- intval();
- ceil();
- floor();
- round();
- cn_copyright() – displays Copyrights (mandatory for CNCat Free).
Previous
|
Table of Contents
|
Next