File modules/cms/action/url/UrlShowAction.class.php

Last commit: Sat Mar 19 00:09:47 2022 +0100	dankert	Refactoring: Outputs are setting their content-type themself.
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 }
Download modules/cms/action/url/UrlShowAction.class.php
History Sat, 19 Mar 2022 00:09:47 +0100 dankert Refactoring: Outputs are setting their content-type themself. Sun, 13 Feb 2022 23:35:26 +0100 dankert Refactoring: New class "Response" which stores all output information. Sun, 5 Dec 2021 20:33:24 +0100 dankert Cleanup: Removed unusable properties from class 'Value' and 'BaseObject'. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.