* @link http://www.pioder.pl/ * @license see LICENSE.txt **/ 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; } } ?>