Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
4b49a31f
Commit
4b49a31f
authored
Nov 08, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix to gii
parent
49081f05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
controller.php
extensions/gii/generators/crud/templates/controller.php
+0
-1
Generator.php
extensions/gii/generators/model/Generator.php
+1
-1
No files found.
extensions/gii/generators/crud/templates/controller.php
View file @
4b49a31f
...
...
@@ -28,7 +28,6 @@ namespace <?= StringHelper::dirname(ltrim($generator->controllerClass, '\\')) ?>
use
<?=
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
;
use
<?=
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
?><?php
if
(
isset
(
$searchModelAlias
))
:?>
as
<?=
$searchModelAlias
?><?php
endif
?>
;
use yii\data\ActiveDataProvider;
use
<?=
ltrim
(
$generator
->
baseControllerClass
,
'\\'
)
?>
;
use yii\web\HttpException;
use yii\web\VerbFilter;
...
...
extensions/gii/generators/model/Generator.php
View file @
4b49a31f
...
...
@@ -104,7 +104,7 @@ class Generator extends \yii\gii\Generator
'baseClass'
=>
'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.'
,
'generateRelations'
=>
'This indicates whether the generator should generate relations based on
foreign key constraints it detects in the database. Note that if your database contains too many tables,
you may want to uncheck this option to accelerate the code generation proc
ess.'
,
you may want to uncheck this option to accelerate the code generation process.'
,
'generateLabelsFromComments'
=>
'This indicates whether the generator should generate attribute labels
by using the comments of the corresponding DB columns.'
,
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment