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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4192c722
Commit
4192c722
authored
Feb 24, 2014
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor docs update (still WIP)
parent
87e09805
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Generator.php
extensions/gii/generators/extension/Generator.php
+4
-4
form.php
extensions/gii/generators/extension/form.php
+1
-1
No files found.
extensions/gii/generators/extension/Generator.php
View file @
4192c722
...
@@ -23,10 +23,10 @@ use yii\helpers\StringHelper;
...
@@ -23,10 +23,10 @@ use yii\helpers\StringHelper;
class
Generator
extends
\yii\gii\Generator
class
Generator
extends
\yii\gii\Generator
{
{
public
$vendorName
;
public
$vendorName
;
public
$packageName
;
public
$packageName
=
"yii2-"
;
public
$namespace
;
public
$namespace
;
public
$type
;
public
$type
=
"yii2-extension"
;
public
$keywords
=
"
[yii2], [need array handling here]
"
;
public
$keywords
=
"
yii2,
"
;
public
$title
;
public
$title
;
public
$description
;
public
$description
;
public
$outputPath
=
"@app/tmp"
;
public
$outputPath
=
"@app/tmp"
;
...
@@ -84,7 +84,7 @@ class Generator extends \yii\gii\Generator
...
@@ -84,7 +84,7 @@ class Generator extends \yii\gii\Generator
return
[
return
[
'vendorName'
=>
'This refers to the name of the publisher, often i.e. your GitHub user name.'
,
'vendorName'
=>
'This refers to the name of the publisher, often i.e. your GitHub user name.'
,
'packageName'
=>
'This is the name of the extension.'
,
'packageName'
=>
'This is the name of the extension.'
,
'namespace'
=>
'This will be added to your autoloader by composer.'
,
'namespace'
=>
'This will be added to your autoloader by composer.
Do not use yii or yii2 in the namespace
'
,
'outputPath'
=>
'The temporary location of the generated files.'
,
'outputPath'
=>
'The temporary location of the generated files.'
,
'title'
=>
'A more descriptive name of your application for the README file.'
,
'title'
=>
'A more descriptive name of your application for the README file.'
,
'description'
=>
'A sentence or subline describing the main purpose of the extension.'
,
'description'
=>
'A sentence or subline describing the main purpose of the extension.'
,
...
...
extensions/gii/generators/extension/form.php
View file @
4192c722
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"module-form"
>
<div
class=
"module-form"
>
<?php
<?php
echo
$form
->
field
(
$generator
,
'vendorName'
);
echo
$form
->
field
(
$generator
,
'vendorName'
);
echo
$form
->
field
(
$generator
,
'packageName'
)
->
label
(
'Package Name -- WILL BE PREFIXED WITH yii2-'
)
;
echo
$form
->
field
(
$generator
,
'packageName'
);
echo
$form
->
field
(
$generator
,
'namespace'
);
echo
$form
->
field
(
$generator
,
'namespace'
);
echo
$form
->
field
(
$generator
,
'type'
)
->
dropDownList
(
$generator
->
optsType
());
echo
$form
->
field
(
$generator
,
'type'
)
->
dropDownList
(
$generator
->
optsType
());
echo
$form
->
field
(
$generator
,
'keywords'
);
echo
$form
->
field
(
$generator
,
'keywords'
);
...
...
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