Commit 713367e3 authored by andre's avatar andre

метатеги для faq

parent e6440e63
......@@ -43,7 +43,9 @@ class FaqController extends BaseController
*/
public function actionIndex()
{
$this->meta_title = Yii::t('content', 'Faq');
$this->meta_title = Settings::getValue('meta-Title');
$this->meta_description = Settings::getValue('meta-Disription');
$this->meta_keywords = Settings::getValue('meta-Keywords');
$query = FaqRubric::find()->where(['=', 'section', Faq::SECTION_FAQ])->orderBy('sort');
......@@ -60,13 +62,15 @@ class FaqController extends BaseController
*/
public function actionVideo()
{
$this->meta_title = Settings::getValue('meta-Title-video');
$this->meta_description = Settings::getValue('meta-Disription-video');
$this->meta_keywords = Settings::getValue('meta-Keywords-video');
if(!isset(Faq::$section_title[Faq::SECTION_VIDEO]))
{
throw new NotFoundHttpException('The requested page does not exist.');
}
$this->meta_title = Yii::t('content', 'Faq');
$query = FaqRubric::find()->where(['=', 'section', Faq::SECTION_VIDEO])->orderBy('sort');
return $this->render('index', [
......
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