view.php 864 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * This is the template for generating an action view file.
  4. * The following variables are available in this template:
  5. * - $this: the ControllerCode object
  6. * - $action: the action ID
  7. */
  8. ?>
  9. <?php echo "<?php\n"; ?>
  10. /* @var $this <?php echo $this->getControllerClass(); ?> */
  11. <?php
  12. $label=ucwords(trim(strtolower(str_replace(array('-','_','.'),' ',preg_replace('/(?<![A-Z])[A-Z]/', ' \0', basename($this->getControllerID()))))));
  13. if($action==='index')
  14. {
  15. echo "\$this->breadcrumbs=array(
  16. '$label',
  17. );";
  18. }
  19. else
  20. {
  21. $action=ucfirst($action);
  22. echo "\$this->breadcrumbs=array(
  23. '$label'=>array('/{$this->uniqueControllerID}'),
  24. '$action',
  25. );";
  26. }
  27. ?>
  28. ?>
  29. <h1><?php echo '<?php'; ?> echo $this->id . '/' . $this->action->id; ?></h1>
  30. <p>
  31. You may change the content of this page by modifying
  32. the file <tt><?php echo '<?php'; ?> echo __FILE__; ?></tt>.
  33. </p>