Zdołałem zrobić coś takiego
<?php class Template { public function __construct($templates = 'default', $dir = './styles/') { self::$templates = $templates; self::$dir = $dir; } self::$vars[$key] = $value; } if( $file ) { $file = self::$dir . self::$templates . '/' . $file; include_once( $file ); } } } } ?>
Da się coś z tego zrobić czy skorzystać z innych skryptów?