Commit 4192c722 by Tobias Munk

minor docs update (still WIP)

parent 87e09805
......@@ -23,10 +23,10 @@ use yii\helpers\StringHelper;
class Generator extends \yii\gii\Generator
{
public $vendorName;
public $packageName;
public $packageName = "yii2-";
public $namespace;
public $type;
public $keywords = "[yii2], [need array handling here]";
public $type = "yii2-extension";
public $keywords = "yii2,";
public $title;
public $description;
public $outputPath = "@app/tmp";
......@@ -84,7 +84,7 @@ class Generator extends \yii\gii\Generator
return [
'vendorName' => 'This refers to the name of the publisher, often i.e. your GitHub user name.',
'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.',
'title' => 'A more descriptive name of your application for the README file.',
'description' => 'A sentence or subline describing the main purpose of the extension.',
......
......@@ -8,7 +8,7 @@
<div class="module-form">
<?php
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, 'type')->dropDownList($generator->optsType());
echo $form->field($generator, 'keywords');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment