echo Url::createUrl(['/site/index']);
echo Url::createUrl(['/blog/post', 'id' => 1]);
echo Url::createUrl(['/contact-us'], true);In this example, the createUrl method is used to create a URL for a custom route named "contact-us". The second parameter passed to the method is set to true, indicating that this is a custom route. The createUrl method is part of the Yii2 framework, which is a PHP package library for web development.