среда, 5 июля 2017 г.

Yii включить gii

В config/main.php

В modules надо добавить

'gii' => array(
    'class' => 'system.gii.GiiModule',
    'password' => '1',
),


В urlManager rules

'gii'=>'gii',
'gii/<controller:\w+>'=>'gii/<controller>',
'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>',

yii Распечатать конфиг

print_r(Yii::app()->getComponents(false));

git Игнорировать изменения прав доступа

git config core.fileMode false

В конфиге:

core.fileMode
 If false, the executable bit differences between the index and the
 working copy are ignored; useful on broken filesystems like FAT.
 See git-update-index(1). True by default.



-c для установки в одной команде:

git -c core.fileMode=false diff

--global Установит поведение по умолчанию для текущего юзера:

git config --global core.fileMode false


core.fileMode Охватывает только бит исполнения.