mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-09 09:36:56 +01:00
31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* This is the template for generating the update 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";
|
|
$nameColumn=$this->guessNameColumn($columns);
|
|
$label=$this->class2name($modelClass,true);
|
|
echo "\$this->breadcrumbs=array(
|
|
'$label'=>array('index'),
|
|
\$model->{$nameColumn}=>array('view','id'=>\$model->{$ID}),
|
|
'Update',
|
|
);\n";
|
|
?>
|
|
?>
|
|
|
|
<h1>Update <?php echo $modelClass." <?php echo \$model->{$ID}; ?>"; ?></h1>
|
|
|
|
<ul class="actions">
|
|
<li><?php echo "<?php echo CHtml::link('List {$modelClass}',array('index')); ?>"; ?></li>
|
|
<li><?php echo "<?php echo CHtml::link('Create {$modelClass}',array('create')); ?>"; ?></li>
|
|
<li><?php echo "<?php echo CHtml::link('View {$modelClass}',array('view','id'=>\$model->{$ID})); ?>"; ?></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)); ?>"; ?>
|