This commit is contained in:
System Administrator
2011-03-31 06:01:16 +04:00
parent 4c4b0d310d
commit 78da6e4f11
88 changed files with 21309 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
class Controller {
public function loadPage() {
$app = Config::get('app:App:default_app');
require_once 'app/'. $app .'/controllers/Index.class.php';
$c = new IndexController();
$data = $c->_index();
$v = new View();
$v->setTemplate('app/'. $app .'/templates/main.php');
$v->setView('app/'. $app .'/views/Index_index.php');
$v->setData($data);
$html = $v->render();
header('Content-Type: text/html; charset=utf-8');
echo $html;
}
}
?>