28 lines
484 B
PHP
28 lines
484 B
PHP
<?php
|
|
|
|
namespace lib\Core;
|
|
|
|
use lib\Core\View;
|
|
|
|
abstract class Controller
|
|
{
|
|
private $_debug = false;
|
|
protected $view = null;
|
|
protected function __construct()
|
|
{
|
|
$this->view = new View();
|
|
} //
|
|
final public function setDebug($debug)
|
|
{
|
|
$this->_debug = $debug;
|
|
}
|
|
final public function getDebug()
|
|
{
|
|
return $this->_debug;
|
|
}
|
|
public function render($file)
|
|
{
|
|
return $this->view->render($file);
|
|
}
|
|
} //Class
|