url = "/cycle-test"
layout = "cycle-test"
==
<?php
function onStart() {
    $this['pageStartVar'] = 3;
}

function onEnd() {
    $this['pageEndVar'] = 4;
}
?>
==
{{ layoutStartVar }}{{ layoutBeforePageStartVar }}{{ pageStartVar }}{{ pageEndVar }}{{ layoutEndVar }}