'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '_x75K9vf4eIdU4cW7zEeTo2UtN0fFB0G',
//'baseUrl' => $baseUrl
'baseUrl' => ''
],
'urlManager' => [
//'baseUrl' => $baseUrl,
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => false,
'rules' => [
// ...
],
],
<div class="container">
<h1>Show page</h1>
<button class="btn btn-success">Click me...</button>
</div>
<?php
$this->registerJs("$('.container').append('<p>Show!!!</p>')", \yii\web\View::POS_LOAD);