芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/yii/framework/gii/generators/crud/templates/default/view.php
/* @var $this getControllerClass(); ?> */ /* @var $model getModelClass(); ?> */ guessNameColumn($this->tableSchema->columns); $label=$this->pluralize($this->class2name($this->modelClass)); echo "\$this->breadcrumbs=array( '$label'=>array('index'), \$model->{$nameColumn}, );\n"; ?> $this->menu=array( array('label'=>'List modelClass; ?>', 'url'=>array('index')), array('label'=>'Create modelClass; ?>', 'url'=>array('create')), array('label'=>'Update modelClass; ?>', 'url'=>array('update', 'id'=>$model->tableSchema->primaryKey; ?>)), array('label'=>'Delete modelClass; ?>', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->tableSchema->primaryKey; ?>),'confirm'=>'Are you sure you want to delete this item?')), array('label'=>'Manage modelClass; ?>', 'url'=>array('admin')), ); ?>
View modelClass." #{$this->tableSchema->primaryKey}; ?>"; ?>
$this->widget('zii.widgets.CDetailView', array( 'data'=>$model, 'attributes'=>array( tableSchema->columns as $column) echo "\t\t'".$column->name."',\n"; ?> ), )); ?>