~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/cli/views/shell/crud/index.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * This is the template for generating the index view for crud.
 
4
 * The following variables are available in this template:
 
5
 * - $ID: the primary key name
 
6
 * - $modelClass: the model class name
 
7
 * - $columns: a list of column schema objects
 
8
 */
 
9
?>
 
10
<?php
 
11
echo "<?php\n";
 
12
$label=$this->class2name($modelClass,true);
 
13
$route=$modelClass.'/index';
 
14
$route[0]=strtolower($route[0]);
 
15
echo "\$this->breadcrumbs=array(
 
16
        '$label',
 
17
);\n";
 
18
?>
 
19
?>
 
20
 
 
21
<h1>List <?php echo $modelClass; ?></h1>
 
22
 
 
23
<ul class="actions">
 
24
        <li><?php echo "<?php echo CHtml::link('Create {$modelClass}',array('create')); ?>"; ?></li>
 
25
        <li><?php echo "<?php echo CHtml::link('Manage {$modelClass}',array('admin')); ?>"; ?></li>
 
26
</ul><!-- actions -->
 
27
 
 
28
<?php echo "<?php"; ?> $this->widget('zii.widgets.CListView', array(
 
29
        'dataProvider'=>$dataProvider,
 
30
        'itemView'=>'_view',
 
31
)); ?>