openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

UrlShowAction.class.php (510B)


      1 <?php
      2 namespace cms\action\url;
      3 use cms\action\Method;
      4 use cms\action\UrlAction;
      5 
      6 
      7 class UrlShowAction extends UrlAction implements Method {
      8 
      9 
     10 	public function view() {
     11         // Angabe Content-Type
     12         $this->setContentType('text/html' );
     13 
     14         echo '<html><body>';
     15         echo '<h1>'.$this->url->filename.'</h1>';
     16         echo '<hr />';
     17         echo '<a href="'.$this->url->url.'">'.$this->url->url.'</a>';
     18         echo '</body></html>';
     19 
     20         exit;
     21 
     22     }
     23 
     24 
     25     public function post() {
     26     }
     27 }