Answer the question
In order to leave comments, you need to log in
Why doesn't static page appear in YII2(advanced)?
I started to study yii2 advanced template, before that I tried to work in the basic template.
I add url
<p><a class="btn btn-default" href="<?= Url::to(['DetaliesSkill']) ?>">Ссылка</a></p>
public function actionDetaliesSkill()
{
return $this->render('DetaliesSkill');
}
<?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
?>
<div>
Статическая страница
</div>
Answer the question
In order to leave comments, you need to log in
Good afternoon.
Show, for starters, the rules for urlManager() in the config file and fix it in the link
If you write the name of the action using CamelCase , then you must substitute the name in the url parameters with lowercase letters and separate the dash.
p.s.
same herereturn $this->render('DetaliesSkill');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question