File modules/template_engine/components/html/component_include/IncludeComponent.class.php
Last commit: Wed Oct 21 23:14:01 2020 +0200 Jan Dankert Fix: Every Component must implement createElement()
1 <?php 2 3 namespace template_engine\components\html\component_include; 4 5 use template_engine\components\html\Component; 6 7 /** 8 * Pseudo-Component. 9 * The include component is a pseudo component. The template compiler will resolve this component first and is including another xml source file. 10 */ 11 class IncludeComponent extends Component 12 { 13 14 public $file; 15 16 public function createElement() 17 { 18 // no elements required. The template compiler will do the work. 19 return null; 20 } 21 } 22
Downloadmodules/template_engine/components/html/component_include/IncludeComponent.class.php
History Wed, 21 Oct 2020 23:14:01 +0200 Jan Dankert Fix: Every Component must implement createElement() Wed, 14 Oct 2020 22:36:29 +0200 Jan Dankert Refactoring: Fixed the namespace in component classes, now the are able to be load by the standard autoloader. Wed, 14 Oct 2020 22:20:22 +0200 Jan Dankert Refactoring: Renamed component folders, because 'if' is no valid namespace fragment.