diff --git a/common/models/Objectkb.php b/common/models/Objectkb.php index 502bde5..678e2b1 100755 --- a/common/models/Objectkb.php +++ b/common/models/Objectkb.php @@ -8,11 +8,18 @@ use Yii; /** - * Created by PhpStorm. * User: timur * Date: 25.01.18 * Time: 12:46 */ + + /** + * Class Objectkb + * + * @package common\models + * @property \common\models\ObjectkbLang $lang + * + */ class Objectkb extends ActiveRecord { /** diff --git a/frontend/controllers/ObjectController.php b/frontend/controllers/ObjectController.php index 9b42958..941051c 100644 --- a/frontend/controllers/ObjectController.php +++ b/frontend/controllers/ObjectController.php @@ -22,7 +22,7 @@ ->with("lang.alias") ->with("image") ->all(); - + return $this->render( 'index', [ diff --git a/frontend/views/object/index.php b/frontend/views/object/index.php index 9e86009..ad69071 100644 --- a/frontend/views/object/index.php +++ b/frontend/views/object/index.php @@ -65,7 +65,7 @@ ] ) ?>" > - Фото в портфолио + lang->object_name?> diff --git a/frontend/views/site/legal.php b/frontend/views/site/legal.php index 940034f..cf0103a 100644 --- a/frontend/views/site/legal.php +++ b/frontend/views/site/legal.php @@ -15,8 +15,8 @@ use yii\web\View; MapAsset::register($this); $settings = Settings::getInstance(); -$this->title = \Yii::t('app', 'menu-legal'); -$this->params[ 'breadcrumbs' ][] = $this->title; +$this->params['h1'] = \Yii::t('app', 'menu-legal'); +$this->params[ 'breadcrumbs' ][] = $this->params['h1']; $js = <<< JS window.lat = {$settings->lat}; -- libgit2 0.21.4