openrat-cms

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

IncludeComponent.class.php (476B)


      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