Function smarty_compiler_xoAppUrl
Inserts the URL of an application page
This plug-in allows you to generate a module location URL. It uses any URL rewriting mechanism and rules you'll have configured for the system.
To ensure this can be as optimized as possible, it accepts 2 modes of operation:
Static address generation:
This is the default mode and fastest mode. When used, the URL is generated during
the template compilation, and statically written in the compiled template file.
To use it, you just need to provide a location in a format XOOPS understands.
// Generate an URL using a physical path ([xoAppUrl modules/something/yourpage.php]) // Generate an URL using a module+location identifier (2.3+) ([xoAppUrl mod_xoops_Identification#logout])
Dynamic address generation:
The is the slowest mode, and its use should be prevented unless necessary. Here,
the URL is generated dynamically each time the template is displayed, thus allowing
you to use the value of a template variable in the location string. To use it, you
must surround your location with double-quotes ("), and use the
Smarty quoted strings
syntax to insert variables values.
// Use the value of the $sortby template variable in the URL ([xoAppUrl "modules/something/yourpage.php?order=`$sortby`"])
Copyright: (c) 2000-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Skalpa Keo skalpa@xoops.org
Located at lass/smarty/xoops_plugins/compiler.xoAppUrl.php
|
$argStr |
|
|
& $compiler |
string
|
string |