Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'Название модели, все модели нужно создавать в директории common/models, таким образом в данном поле мы указываем значение <code>common\\models\\Modelname</code>.', 'controllerClass' => 'Здесь мы указываем адрес класса создаваемого контроллера, нужно не забыть указать также группу контроллера (post, user, feedback и т.д.), например <code>app\\controllers\\post\\PostController</code>.', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'moduleID' => 'This is the ID of the module that the generated controller will belong to.
             If not set, it means the controller will belong to the application.', 'indexWidgetType' => 'This is the widget type to be used in the index page to display list of the models.
             You may choose either <code>GridView</code> or <code>ListView</code>', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostSearch</code>.']);
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['db' => 'This is the ID of the DB application component.', 'enableRBACAdminAccess' => 'This enable the Access Control to action\'s controller (index, create, update, delete).<br/ >
             Only Admin role could access to that actions if this option is enabled.<br/ >
             Enable it if you are using RBAC on your project, and you have created an admin role.', 'generateView' => 'This generate the code related with the View of the model (actionView, view.php).<br />
             Many times we don\'t need the view of the model. So by default, it will not be generated.', 'useSummernoteOnTextFields' => 'If checked, the default editor for text fields will be Summernote editor.', 'useSelect2ForHasManyRelations' => 'If checked, the form will display a select2 input to select multiple items
         from the related table']);
 }
Exemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['controllerID' => 'Controller ID should be in lower case and may contain module ID(s) separated by slashes. For example:
             <ul>
                 <li><code>order</code> generates <code>OrderController.php</code></li>
                 <li><code>order-item</code> generates <code>OrderItemController.php</code></li>
                 <li><code>admin/user</code> generates <code>UserController.php</code> under <code>admin</code> directory.</li>
             </ul>']);
 }
Exemplo n.º 4
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class, .e.g, <code>app\\controllers\\PostController</code>.
             The controller class name should follow the CamelCase scheme with an uppercase first letter', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'moduleID' => 'This is the ID of the module that the generated controller will belong to.
             If not set, it means the controller will belong to the application.', 'indexWidgetType' => 'This is the widget type to be used in the index page to display list of the models.
             You may choose either <code>GridView</code> or <code>ListView</code>', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostSearch</code>.']);
 }
Exemplo n.º 5
0
 public function hints()
 {
     return array_merge(parent::hints(), ['controllerName' => '用于生成控制器的名称<code>(* ̄(エ) ̄)</code>']);
 }
Exemplo n.º 6
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['providerList' => 'Comma separated list of provider class names, make sure you are using the full namespaced path <code>app\\providers\\CustomProvider1,<br/>app\\providers\\CustomProvider2</code>.', 'viewPath' => 'Output path for view files, eg. <code>@backend/views/crud</code>.', 'pathPrefix' => 'Customized route/subfolder for controllers and views eg. <code>crud/</code>. <b>Note!</b> Should correspond to <code>viewPath</code>.']);
 }
Exemplo n.º 7
0
 /**
  * {@inheritdoc}
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['providerList' => 'Choose the providers to be used.', 'viewPath' => 'Output path for view files, eg. <code>@backend/views/crud</code>.', 'pathPrefix' => 'Customized route/subfolder for controllers and views eg. <code>crud/</code>. <b>Note!</b> Should correspond to <code>viewPath</code>.']);
 }
Exemplo n.º 8
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['tPrefix' => 'For example <code>PageModule</code>', 'indexTitle' => 'Title for the index page', 'createUpdateTitle' => 'Title for the create and update pages <code>Создание бла-бла-бла</code> или <code>Редактирование бла-бла-бла</code>', 'addBootstrapPanel' => 'Wrap views content in <code>div class="panel panel-default"</code>']);
 }
Exemplo n.º 9
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['saveAndReturn' => 'If checked, will place two buttons on the create/update forms: ' . '"Save" (saves and continue editing) and "Save and return" (returns to list after saving)', 'saveMultiple' => 'If checked, will generate skeleton code for validating and saving related models as well as the main model']);
 }
Exemplo n.º 10
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['providerList' => 'Comma separated list of provider class names, make sure you are using the full namespaced path <code>app\\providers\\CustomProvider1,<br/>app\\providers\\CustomProvider2</code>.', 'viewPath' => 'Output path for view files, eg. <code>@backend/views/crud</code>.', 'pathPrefix' => 'Customized route/subfolder for controllers and views eg. <code>crud/</code>. <b>Note!</b> Should correspond to <code>viewPath</code>.', 'traitClass' => 'This is the trait class where the CRUD functions will be coded.
                 You should provide a fully qualified class name, e.g., <code>app\\controllers\\traits\\PostCrud</code>.', 'generateControllerClass' => 'This indicates whether the generator should generate the controller class, this should usually be done only once. The trait class is always generated.']);
 }
Exemplo n.º 11
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['baseModelClass' => 'This is the Base ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>common\\models\\Post</code>.', 'modelClass' => 'This is the name of the backend model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\Post</code>.']);
 }
Exemplo n.º 12
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['contextClass' => 'This is the ActiveRecord class, which serves as context for the contoller.
             You should provide a fully qualified class name, e.g., <code>app\\models\\User</code>.
             You may specify several classes separated by comma.']);
 }
Exemplo n.º 13
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
              qualified namespaced class name, e.g., <code>backend\\models\\search\\Post</code>.', 'viewModelClass' => 'This is the name of the view model class to be generated. You should provide a fully
              qualified namespaced class name, e.g., <code>backend\\models\\view\\Post</code>.']);
 }
Exemplo n.º 14
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class (e.g. <code>app\\controllers\\PostController</code>),
             and class name should be in CamelCase with an uppercase first letter. Make sure the class
             is using the same namespace as specified by your application\'s controllerNamespace property.', 'viewPath' => 'Specify the directory for storing the view scripts for the controller. You may use path alias here, e.g.,
             <code>/var/www/basic/controllers/views/post</code>, <code>@app/views/post</code>. If not set, it will default
             to <code>@app/views/ControllerID</code>', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'indexWidgetType' => 'This is the widget type to be used in the index page to display list of the models.
             You may choose either <code>GridView</code> or <code>ListView</code>', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostSearch</code>.', 'addingI18NStrings' => 'Enables the adding non existing I18N strings to the message category files.', 'generateRelationsFields' => 'Enable to generate relations fields', 'db' => 'This is the ID of the DB application component.', 'icon' => 'Icon css class, e.g. <code>glyphicon glyphicon-user</code> render to <i class="glyphicon glyphicon-user"></i>']);
 }