add comments

This commit is contained in:
2023-05-08 14:20:48 +03:00
parent fdf3e1e602
commit 3268c490e2
2 changed files with 47 additions and 5 deletions

View File

@ -77,6 +77,7 @@ class NewsController extends Controller
}
/**
* Экшен просмотра одной новости
* @param null $slug
* @return mixed
*/
@ -88,6 +89,10 @@ class NewsController extends Controller
]);
}
/**
* Экшен для обработки формы
* @return string|\yii\web\Response
*/
public function actionData()
{
$model = new DataForm();
@ -106,6 +111,12 @@ class NewsController extends Controller
]);
}
/**
* Экшен для просмотра текста по профилю и языку
* @param $id
* @param $slug
* @return string
*/
public function actionText($id, $slug)
{
$texts = UserService::run()->getTextByLanguage($id, $slug);