* @copyright (c) 2016, VipDesign */ class Page extends aModule { public $name = 'page'; public $translationsBasePath = __DIR__ . '/messages'; public $configPath = __DIR__ . '/config.php'; /** * @return null|object * @throws \yii\base\InvalidConfigException */ public static function getDb() { return Yii::$app->get('db-core'); } /** * @return string */ public function getPageUploadPath() { return $this->getBaseUploadPath(); } /** * @return string */ public function getPageUploadUrl() { return $this->getBaseUploadUrl(); } }