Files
yii/framework/cli/views/shell/crud/create.php
qiang.xue a1753b7b3e
2010-01-03 03:57:39 +00:00

27 lines
768 B
PHP

<?php
/**
* This is the template for generating the create view for crud.
* The following variables are available in this template:
* - $ID: the primary key name
* - $modelClass: the model class name
* - $columns: a list of column schema objects
*/
?>
<?php
echo "<?php\n";
$label=$this->class2name($modelClass,true);
echo "\$this->breadcrumbs=array(
'$label'=>array('index'),
'Create',
);\n";
?>
?>
<h1>Create <?php echo $modelClass; ?></h1>
<ul class="actions">
<li><?php echo "<?php echo CHtml::link('List {$modelClass}',array('index')); ?>"; ?></li>
<li><?php echo "<?php echo CHtml::link('Manage {$modelClass}',array('admin')); ?>"; ?></li>
</ul><!-- actions -->
<?php echo "<?php echo \$this->renderPartial('_form', array('model'=>\$model)); ?>"; ?>