| 1 | <?php |
||
| 13 | class Text { |
||
|
|
|||
| 14 | use Module; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Fast string templating. |
||
| 18 | * Uses a Twig-like syntax. |
||
| 19 | * |
||
| 20 | * @example |
||
| 21 | * echo Text::render('Your IP is : {{ server.REMOTE_HOST }}',array('server' => $_SERVER)); |
||
| 22 | * |
||
| 23 | * @author Stefano Azzolini <[email protected]> |
||
| 24 | * @access public |
||
| 25 | * @static |
||
| 26 | * @param mixed $t The text template |
||
| 27 | * @param mixed $v (default: null) The array of values exposed in template. |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public static function render($t,$v=null){ |
||
| 44 | |||
| 45 | } /* End of class */ |
||
| 46 |
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.