Commit 21d355d9 authored by Shakarim Sapa's avatar Shakarim Sapa

- Test

parent ea203843
...@@ -125,6 +125,12 @@ class CoContentLang extends \common\components\ActiveRecordModel ...@@ -125,6 +125,12 @@ class CoContentLang extends \common\components\ActiveRecordModel
{ {
if($block->lang) if($block->lang)
{ {
if ($block->name=='o-kompanii-data-centr')
{
var_dump($block->name);
var_dump($block->lang->text);
die;
}
$arrWhatReplace[] = '{' . $block->name . '}'; $arrWhatReplace[] = '{' . $block->name . '}';
$arrReplace[] = $block->lang->text; $arrReplace[] = $block->lang->text;
$arrWhatReplaceNext[] = '[' . $block->name . ']'; $arrWhatReplaceNext[] = '[' . $block->name . ']';
...@@ -151,7 +157,6 @@ class CoContentLang extends \common\components\ActiveRecordModel ...@@ -151,7 +157,6 @@ class CoContentLang extends \common\components\ActiveRecordModel
$arrWhatReplaceNext[] = '[footer-index]'; $arrWhatReplaceNext[] = '[footer-index]';
$arrReplaceNext[] = \Yii::$app->getView()->render('@app/views/layouts/footer-index'); $arrReplaceNext[] = \Yii::$app->getView()->render('@app/views/layouts/footer-index');
$content = str_replace($arrWhatReplace, $arrReplace, $content); return str_replace($arrWhatReplaceNext, $arrReplaceNext,str_replace($arrWhatReplace, $arrReplace, $content));
return str_replace($arrWhatReplaceNext, $arrReplaceNext, $content);
} }
} }
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