Skip to content

Instantly share code, notes, and snippets.

@yaoquan
Created August 28, 2011 10:51
Show Gist options
  • Select an option

  • Save yaoquan/1176528 to your computer and use it in GitHub Desktop.

Select an option

Save yaoquan/1176528 to your computer and use it in GitHub Desktop.
<?php
$this->breadcrumbs=array(
'Groups'=>array('index'),
$model->name,
);
$this->menu=array(
array('label'=>'List Groups', 'url'=>array('index')),
array('label'=>'Create Groups', 'url'=>array('create')),
array('label'=>'Update Groups', 'url'=>array('update', 'id'=>$model->id)),
array('label'=>'Delete Groups', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>'Manage Groups', 'url'=>array('admin')),
);
?>
<h1>View Groups #<?php echo $model->id; ?></h1>
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'id',
array(
'label' => 'Parent',
'type' => 'raw',
'value' => CHtml::link(CHtml::encode($model->parentGroup->name),
array('groups/'.$model->parentId)),
),
'path',
'name',
'description',
'isTeam',
'avatar',
'created',
array(
'label' => 'Created By',
'type' => 'raw',
'value' => CHtml::link(CHtml::encode($model->createdBy->profile->firstname . ' ' . $model->createdBy->profile->lastname),
array('user/user/view','id'=>$model->createdBy->id)),
),
'updated',
'status',
),
)); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment