dbms_primeidc/extdbms/lib/Core/Controller.php
2025-03-26 19:23:54 +09:00

36 lines
666 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;
}
final public function __get($name)
{
return $this->view->$name;
}
final public function __set($name, $value)
{
$this->view->$name = $value;
}
public function render($file)
{
return $this->view->render($file);
}
} //Class