A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
500 B

<?php
require_once('./inc/askModel.class.php');
abstract class View extends AskModel
{
protected $TPL = array();
protected $db;
function show($template)
{
if (file_exists('./templates/'.$template.'.tpl.php'))
require_once('./templates/'.$template.'.tpl.php');
else
throw new Exception('Could not show selected template: '.$template);
}
function assign($n, $v) //osadzanie elementu skórki
{
$this->TPL[$n] = $v;
}
function __construct(&$db)
{
$this->db = $db;
}
}
?>