3108 - Важно - удаление лишних разделов из sitemao.xml

parent a1b7eea0
...@@ -98,7 +98,6 @@ class DocumentationAdminController extends AdminController ...@@ -98,7 +98,6 @@ class DocumentationAdminController extends AdminController
try { try {
$model->attributes = Yii::$app->request->post('DocContent'); $model->attributes = Yii::$app->request->post('DocContent');
if ($model->save()) { if ($model->save()) {
$transaction->commit(); $transaction->commit();
return $this->redirect(['manage']); return $this->redirect(['manage']);
......
...@@ -11,7 +11,6 @@ use common\modules\languages\models\Languages; ...@@ -11,7 +11,6 @@ use common\modules\languages\models\Languages;
* @property int $id * @property int $id
* @property int $content_id * @property int $content_id
* @property int $lang_id * @property int $lang_id
* @property string $url
* @property string $name * @property string $name
* @property string $markdown * @property string $markdown
* @property string $html * @property string $html
......
...@@ -34,9 +34,9 @@ $defaultUrl = ( ...@@ -34,9 +34,9 @@ $defaultUrl = (
<?php <?php
if ($defaultUrl) { if ($defaultUrl) {
echo $form->field($documentation, 'url')->textInput(['value' => $defaultUrl, 'readonly' => 'readonly', 'maxlength' => 250])->hint('Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'); echo $form->field($model, 'url')->textInput(['value' => $defaultUrl, 'readonly' => 'readonly', 'maxlength' => 250])->hint('Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html');
} else { } else {
echo $form->field($documentation, 'url')->textInput(['maxlength' => 250])->hint('Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'); echo $form->field($model, 'url')->textInput(['maxlength' => 250])->hint('Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html');
} }
?> ?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment