1 | <?php |
||
8 | class ClassyTemplate { |
||
|
|||
9 | |||
10 | /** |
||
11 | * Theme twig templates folder |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | public static $folder = 'views'; |
||
16 | |||
17 | /** |
||
18 | * Returns template to show based on request value |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | public static function get_template() { |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Replaces all slashes with dots |
||
37 | * |
||
38 | * @param string $template |
||
39 | * @return string |
||
40 | */ |
||
41 | public static function get_blade_template($template) { |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Returns list of theme page templates |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public static function get_page_templates_list() { |
||
80 | |||
81 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.