Added simple templates module

This commit is contained in:
Antonio de la Rosa 2025-11-23 01:26:30 +01:00
parent 47c7003e3b
commit 17b6df73ff
7 changed files with 265 additions and 38 deletions

View file

@ -41,30 +41,12 @@ class AppController extends TplController{
header('Location: '.Url::make_url('admin', 'app', ['signup']));
}
//print_r($this->db->table);
/*$conn=MySQL::get_pdo_connection();
$sth=$conn->query('SELECT count(*) as num_items from useradmin');
$count=$sth->fetch()[0];
if($count==0) {
header('Location: '.PhangoApp\PhaRouter\Url::make_url('admin', 'app', ['signup']));
}
echo View::load_view(['login' => 1], 'login');*/
break;
case 'signup':
echo $this->tpl->load_template('signup', ['title' => 'Signup']);
break;