bashgid/web/protected/views/article/view.php

35 lines
849 B
PHP
Raw Normal View History

2015-06-26 10:03:20 +00:00
<?php
/* @var $this ArticleController */
/* @var $model Article */
$this->breadcrumbs=array(
'Articles'=>array('index'),
$model->name,
);
$this->menu=array(
array('label'=>'List Article', 'url'=>array('index')),
array('label'=>'Create Article', 'url'=>array('create')),
array('label'=>'Update Article', 'url'=>array('update', 'id'=>$model->id)),
array('label'=>'Delete Article', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>'Manage Article', 'url'=>array('admin')),
);
?>
<h1>View Article #<?php echo $model->id; ?></h1>
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'id',
'name',
'type',
'title',
'content',
'geoLat',
'geoLon',
'externalLink',
'dateTime',
),
)); ?>