Skip to content

Kirby 3.9.8

$kirby->url('assets')

Returns the url of the assets folder

Example

<?= $kirby->url('assets') ?>

Custom setup

If you want to overwrite the Url you can do this in your index.php by passing a custom Url setup to the Kirby constructor.

/index.php
<?php

include 'kirby/bootstrap.php';

$kirby = new Kirby([
    'urls' => [
        'assets' => 'https://example.com/custom/url',
    ],
]);

echo $kirby->render();