andWhere(['active' => Banner::STATUS_ACTIVE]); } /** * @return BannerQuery */ public function showTime() { return $this->andWhere(['<', 'start_at', time()])->andWhere(['>', 'end_at', time()]); } /*public function excludeFree() { $current = Url::current([]); return $this->andWhere(['not rlike', 'exclude_urls', '^'.$current.'$']); }*/ }