Index wyglada tak wiec nie duzo da ale podam:
CYTAT
<?
include ('library/loader.php');
try {
$config = new config;
$arrayConfig = $config->loadConfig('menu.ini');
registry::set('config', $config);
$db = new db("mysql:host=".$arrayConfig['db']['host'].";dbname=".$arrayConfig['db']['name'], $arrayConfig['db']['user'], $arrayConfig['db']['password']);
$db->query("SET CHARSET utf8");
$db->query("SET NAMES utf8");
registry::set('db', $db);
$router = new router($arrayConfig['router']['defaultClass'], $arrayConfig['router']['startClass'], $arrayConfig['router']['exceptions']);
registry::set('router', $router);
$router->action();
} catch (Exception $e) {
echo 'Wystąpił błąd systemu: '.$e->getMessage();
}
?>
include ('library/loader.php');
try {
$config = new config;
$arrayConfig = $config->loadConfig('menu.ini');
registry::set('config', $config);
$db = new db("mysql:host=".$arrayConfig['db']['host'].";dbname=".$arrayConfig['db']['name'], $arrayConfig['db']['user'], $arrayConfig['db']['password']);
$db->query("SET CHARSET utf8");
$db->query("SET NAMES utf8");
registry::set('db', $db);
$router = new router($arrayConfig['router']['defaultClass'], $arrayConfig['router']['startClass'], $arrayConfig['router']['exceptions']);
registry::set('router', $router);
$router->action();
} catch (Exception $e) {
echo 'Wystąpił błąd systemu: '.$e->getMessage();
}
?>
I dotego pliki w tpl reszta i pytanie brzmi tak:) Czy da sie wstawic tu gdzies kodzik z swli zeby działało?