<div class="page-header">
  <h2>
    <li class="icon-file"></li>
    <?php echo htmlspecialchars(Yii::t("app", "View"),ENT_QUOTES,'UTF-8'); ?>
  </h2>
</div>
<?php $directory = pathinfo($filename,PATHINFO_DIRNAME); ?>
<h4>
  <?php echo htmlspecialchars(t('Current file').':',ENT_QUOTES,'UTF-8'); ?>
  <?php echo htmlspecialchars($filename,ENT_QUOTES,'UTF-8'); ?>
  <font size="2pt">
    <a <?php echo MtHaml\Runtime::renderAttributes(array(array('href', (url('debug/EditAsText',array('filename'=>$filename))))), 'html5', 'UTF-8'); ?>><?php echo htmlspecialchars('['.t('Edit').']'  ,ENT_QUOTES,'UTF-8'); ?></a>
  </font>
</h4>
<h5>
  <?php echo htmlspecialchars(t('Return to').' ',ENT_QUOTES,'UTF-8'); ?>
  <a <?php echo MtHaml\Runtime::renderAttributes(array(array('href', (url('debug/fileexplorer',array('path'=>$directory))))), 'html5', 'UTF-8'); ?>>
    <?php echo htmlspecialchars($directory,ENT_QUOTES,'UTF-8'); ?>
  </a>
</h5>
<?php $fileContent = file_get_contents($filename); ?>
<pre><?php echo htmlspecialchars($fileContent,ENT_QUOTES,'UTF-8'); ?></pre>
