/branches/ant-ng/lib/core.php |
---|
13,7 → 13,24 |
*/ |
class Core { |
protected $db = NULL; |
function __constructor($database) { |
$this->db = $database; |
} |
} |
class Security extends Core { |
function __constructor() { |
} |
} |
class Owner extends Core { |
function __constructor() { |
} |
} |
?> |
/branches/ant-ng/init.php |
---|
40,7 → 40,7 |
$db->setFetchMode(DB_FETCHMODE_ASSOC); |
$query =& $db->query("SET NAMES utf8"); |
$core = new Core; |
$smarty = new Smarty; |
$core = new Core($db); |
$smarty = new Smarty(); |
?> |