create.php 716 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * This is the template for generating the create view for crud.
  4. * The following variables are available in this template:
  5. * - $ID: the primary key name
  6. * - $modelClass: the model class name
  7. * - $columns: a list of column schema objects
  8. */
  9. ?>
  10. <?php
  11. echo "<?php\n";
  12. $label=$this->class2name($modelClass,true);
  13. echo "\$this->breadcrumbs=array(
  14. '$label'=>array('index'),
  15. 'Create',
  16. );\n";
  17. ?>
  18. $this->menu=array(
  19. array('label'=>'List <?php echo $modelClass; ?>', 'url'=>array('index')),
  20. array('label'=>'Manage <?php echo $modelClass; ?>', 'url'=>array('admin')),
  21. );
  22. ?>
  23. <h1>Create <?php echo $modelClass; ?></h1>
  24. <?php echo "<?php echo \$this->renderPartial('_form', array('model'=>\$model)); ?>"; ?>