Created
January 22, 2015 22:27
-
-
Save creocoder/9334d4fb7d3c8e84c984 to your computer and use it in GitHub Desktop.
This file contains 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->choice = $this->rulesChooser(); | |
} | |
parent::init(); | |
} | |
protected function rulesChooser() { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment