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
<?php | |
use backend\components\DbManager; | |
use yii\base\InvalidConfigException; | |
use yii\db\Schema; | |
use yii\db\Migration; | |
class m140707_092417_create_rbac_tables extends Migration | |
{ | |
/** |
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
<?php | |
namespace backend\components; | |
use yii\db\Query; | |
use yii\rbac\Item; | |
use yii\rbac\Role; | |
/** | |
* Class DbManager |
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
<?php | |
namespace backend\models; | |
use Yii; | |
use yii\base\Model; | |
/** | |
* Форма логина для backend | |
*/ |
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
<?php | |
namespace backend\models; | |
use Yii; | |
use yii\base\NotSupportedException; | |
use yii\db\ActiveRecord; | |
use yii\db\Expression; | |
use yii\web\IdentityInterface; |
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
<?php | |
use yii\db\Expression; | |
use yii\db\Schema; | |
use yii\db\Migration; | |
class m140702_115933_create_backend_user_table extends Migration | |
{ | |
public function safeUp() | |
{ |