/** * Construct * * @param integer $id * @param null $module */ public function __construct($id, $module = null) { parent::__construct($id, $module); $this->catalog_config = CatalogConfig::model()->findByPk(1); }
public function __construct($id, $module = null) { parent::__construct($id, $module); // загружаем конфигурацию каталога $this->catalog_config = CatalogConfig::model()->findByPk(1); }
public function __construct($id, $module = null) { parent::__construct($id, $module); $this->reviews_config = ReviewsConfig::model()->findByPk(1); }