index.php 783 B

12345678910111213141516171819202122232425262728293031
  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. $this->menu=array(
  20. array('label'=>'Create <?php echo $modelClass; ?>', 'url'=>array('create')),
  21. array('label'=>'Manage <?php echo $modelClass; ?>', 'url'=>array('admin')),
  22. );
  23. ?>
  24. <h1><?php echo $label; ?></h1>
  25. <?php echo "<?php"; ?> $this->widget('zii.widgets.CListView', array(
  26. 'dataProvider'=>$dataProvider,
  27. 'itemView'=>'_view',
  28. )); ?>