index.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <h1>Controller Generator</h1>
  2. <p>This generator helps you to quickly generate a new controller class,
  3. one or several controller actions and their corresponding views.</p>
  4. <?php $form=$this->beginWidget('CCodeForm', array('model'=>$model)); ?>
  5. <div class="row">
  6. <?php echo $form->labelEx($model,'controller'); ?>
  7. <?php echo $form->textField($model,'controller',array('size'=>65)); ?>
  8. <div class="tooltip">
  9. Controller ID is case-sensitive. Below are some examples:
  10. <ul>
  11. <li><code>post</code> generates <code>PostController.php</code></li>
  12. <li><code>postTag</code> generates <code>PostTagController.php</code></li>
  13. <li><code>admin/user</code> generates <code>admin/UserController.php</code>.
  14. If the application has an <code>admin</code> module enabled,
  15. it will generate <code>UserController</code> within the module instead.
  16. Make sure to write module name in the correct case if it has a camelCase name.
  17. </li>
  18. </ul>
  19. </div>
  20. <?php echo $form->error($model,'controller'); ?>
  21. </div>
  22. <div class="row sticky">
  23. <?php echo $form->labelEx($model,'baseClass'); ?>
  24. <?php echo $form->textField($model,'baseClass',array('size'=>65)); ?>
  25. <div class="tooltip">
  26. This is the class that the new controller class will extend from.
  27. Please make sure the class exists and can be autoloaded.
  28. </div>
  29. <?php echo $form->error($model,'baseClass'); ?>
  30. </div>
  31. <div class="row">
  32. <?php echo $form->labelEx($model,'actions'); ?>
  33. <?php echo $form->textField($model,'actions',array('size'=>65)); ?>
  34. <div class="tooltip">
  35. Action IDs are case-insensitive. Separate multiple action IDs with commas or spaces.
  36. </div>
  37. <?php echo $form->error($model,'actions'); ?>
  38. </div>
  39. <?php $this->endWidget(); ?>