Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Elefant CMS sub-expression quote test
<!-- apps/test/views/const.html -->
{! navigation/section?section=[constant('HOMEPAGE')] !}
<?php // apps/test/handlers/const.php
define ('HOMEPAGE', 'index');
echo $tpl->render ('test/const');
?>
<!-- apps/test/views/const.html -->
<?php echo $this->controller->run ('navigation/section', array ('section' => Template::sanitize (constant('HOMEPAGE'), 'UTF-8'))); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment