for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Slim\Slim;
abstract class Xhgui_Controller
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* @var array
*/
protected $_templateVars = array();
* @var string|null
protected $_template = null;
* @var Slim
protected $app;
public function __construct(Slim $app)
$this->app = $app;
}
public function set($vars)
$this->_templateVars = array_merge($this->_templateVars, $vars);
public function templateVars()
return $this->_templateVars;
public function render()
$this->app->render($this->_template, $this->_templateVars);
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.