Added simple templates module
This commit is contained in:
parent
47c7003e3b
commit
17b6df73ff
7 changed files with 265 additions and 38 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue