Mecha CMS

Reserved variables.

$url

Return the current URL.

2.0.0

This variable is an instance of the URL.

Example:

<?php if ('/foo/bar' === $url->path) { … } ?>