| 1 | <?php  | 
            ||
| 5 | abstract class Xhgui_Controller  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var array  | 
            ||
| 9 | */  | 
            ||
| 10 | protected $_templateVars = array();  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * @var string|null  | 
            ||
| 14 | */  | 
            ||
| 15 | protected $_template = null;  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * @var Slim  | 
            ||
| 19 | */  | 
            ||
| 20 | protected $app;  | 
            ||
| 21 | |||
| 22 | public function __construct(Slim $app)  | 
            ||
| 26 | |||
| 27 | public function set($vars)  | 
            ||
| 31 | |||
| 32 | public function templateVars()  | 
            ||
| 36 | |||
| 37 | public function render()  | 
            ||
| 41 | |||
| 42 | }  | 
            ||
| 43 | 
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.