index.php 718 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * The following variables are available in this template:
  4. * - $this: the CrudCode object
  5. */
  6. ?>
  7. <?php echo "<?php\n"; ?>
  8. /* @var $this <?php echo $this->getControllerClass(); ?> */
  9. /* @var $dataProvider CActiveDataProvider */
  10. <?php
  11. $label=$this->pluralize($this->class2name($this->modelClass));
  12. echo "\$this->breadcrumbs=array(
  13. '$label',
  14. );\n";
  15. ?>
  16. $this->menu=array(
  17. array('label'=>'Create <?php echo $this->modelClass; ?>', 'url'=>array('create')),
  18. array('label'=>'Manage <?php echo $this->modelClass; ?>', 'url'=>array('admin')),
  19. );
  20. ?>
  21. <h1><?php echo $label; ?></h1>
  22. <?php echo "<?php"; ?> $this->widget('zii.widgets.CListView', array(
  23. 'dataProvider'=>$dataProvider,
  24. 'itemView'=>'_view',
  25. )); ?>