view.php 665 B

1234567891011121314151617181920212223242526
  1. <?php
  2. echo "<?php\n";
  3. $controller=substr($controller,0,strlen($controller)-10);
  4. $label=ucwords(trim(strtolower(str_replace(array('-','_','.'),' ',preg_replace('/(?<![A-Z])[A-Z]/', ' \0', $controller)))));
  5. if($action==='index')
  6. {
  7. echo "\$this->breadcrumbs=array(
  8. '$label',
  9. );";
  10. }
  11. else
  12. {
  13. $route=$controller.'/index';
  14. $route[0]=strtolower($route[0]);
  15. $action=ucfirst($action);
  16. echo "\$this->breadcrumbs=array(
  17. '$label'=>array('$route'),
  18. '$action',
  19. );";
  20. }
  21. ?>
  22. ?>
  23. <h1><?php echo '<?php'; ?> echo $this->id . '/' . $this->action->id; ?></h1>
  24. <p>You may change the content of this page by modifying the file <tt><?php echo '<?php'; ?> echo __FILE__; ?></tt>.</p>