HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
view.php
Go to the documentation of this file.
1 <?php
6 ?>
7 <?php
8 echo "<?php\n";
9 $nameColumn = $this->guessNameColumn($this->tableSchema->columns);
10 $label = $this->pluralize($this->class2name($this->modelClass));
11 echo "\$this->breadcrumbs=array(
12  '$label'=>array('index'),
13  \$model->{$nameColumn},
14 );\n";
15 ?>
16 
17 $this->menu=array(
18 array('label'=>'List <?php echo $this->modelClass; ?>','url'=>array('index')),
19 array('label'=>'Create <?php echo $this->modelClass; ?>','url'=>array('create')),
20 array('label'=>'Update <?php echo $this->modelClass; ?>','url'=>array('update','id'=>$model-><?php echo $this->tableSchema->primaryKey; ?>)),
21 array('label'=>'Delete <?php echo $this->modelClass; ?>','url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model-><?php echo $this->tableSchema->primaryKey; ?>),'confirm'=>'Are you sure you want to delete this item?')),
22 array('label'=>'Manage <?php echo $this->modelClass; ?>','url'=>array('admin')),
23 );
24 ?>
25 
26 <h1>View <?php echo $this->modelClass . " #<?php echo \$model->{$this->tableSchema->primaryKey}; ?>"; ?></h1>
27 
28 <?php echo "<?php"; ?> $this->widget('booster.widgets.TbDetailView',array(
29 'data'=>$model,
30 'attributes'=>array(
31 <?php
32 foreach ($this->tableSchema->columns as $column) {
33  echo "\t\t'" . $column->name . "',\n";
34 }
35 ?>
36 ),
37 )); ?>