This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function beforeDelete() | |
| { | |
| if (method_exists($this->relation, 'beforeCommentDelete')) { | |
| $this->onBeforeDelete = array($this->relation, 'beforeCommentDelete'); | |
| } | |
| return parent::beforeDelete(); | |
| } | |
| protected function afterDelete() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace common\components; | |
| use \yii\web\UrlManager as BaseUrlManager; | |
| class UrlManager extends BaseUrlManager { | |
| protected $choice; | |
| public function init() { | |
| if ($this->choice === null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace common\models; | |
| use Yii; | |
| use yii\base\NotSupportedException; | |
| use yii\behaviors\TimestampBehavior; | |
| use yii\db\ActiveRecord; | |
| use yii\web\IdentityInterface; | |
| /** | |
| * User model |