2014-03-13 9 views

답변

19

사본 예. 제세동 생성기 템플리트는 gii/generators/crud/templates에서 애플리케이션 app/templates/mycrud으로 템플릿을 변환합니다.

그런 다음 설정의 템플릿을 정의 : 문서가 완료

$config['modules']['gii'] = [ 
    'class'  => 'yii\gii\Module', 
    'generators' => [ 
     'crud' => [ 
      'class'  => 'yii\gii\generators\crud\Generator', 
      'templates' => ['mycrud' => '@app/templates/mycrud'] 
     ] 
    ] 
]; 

때까지 당신은 또한 사용자 정의 발생기와 템플릿을 만드는 방법 내 Gii extension 살펴있을 수 있습니다.