| 1 | <?php |
||
| 8 | class ClassyView { |
||
|
|
|||
| 9 | |||
| 10 | /** |
||
| 11 | * Views folder |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public static $folder = 'views'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns view name to show based on request value |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public static function get_view() { |
||
| 33 | |||
| 34 | |||
| 35 | /** |
||
| 36 | * Replaces all slashes with dots |
||
| 37 | * |
||
| 38 | * @param string $view |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public static function get_blade_view($view) { |
||
| 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.