summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
13247f2)
Signed-off-by: Roland Häder <roland@mxchange.org>
// Sweet and simple...
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']: variableName=' . $variableName . ',getConfigEntry()=' . $this->getConfigInstance()->getConfigEntry($variableName));
// Sweet and simple...
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']: variableName=' . $variableName . ',getConfigEntry()=' . $this->getConfigInstance()->getConfigEntry($variableName));
- $this->setVariable('config', $variableName, $this->getConfigInstance()->getConfigEntry($variableName));
+ $this->assignVariable($variableName, $this->getConfigInstance()->getConfigEntry($variableName));
* Renders this menu entry, as every block all variables got overwritten
* with data from next entry.
*
* Renders this menu entry, as every block all variables got overwritten
* with data from next entry.
*
- * @todo 'anchor_href' may needs expanding with full URL
* @return void
*/
private function renderMenuEntry () {
* @return void
*/
private function renderMenuEntry () {
// Copy variable
$variableValue = $this->readVariable($variableName);
// Copy variable
$variableValue = $this->readVariable($variableName);
+ // Is the key 'anchor-href'?
+ if ($variableName == 'anchor-href') {
+ // Expand variable with URL then
+ $variableValue = '{?base_url?}/' . $variableValue;
+ } // END - if
+
// ... into the instance
$templateInstance->assignVariable($variableName, $variableValue);
} // END - foreach
// ... into the instance
$templateInstance->assignVariable($variableName, $variableValue);
} // END - foreach