Permalink
Browse files

Move template separately

  • Loading branch information...
vojtasvoboda committed Aug 17, 2014
1 parent bc94780 commit d5db58fc296127924a55107779d4bc16c0ae6015
Showing with 33 additions and 36 deletions.
  1. +8 −36 index.php
  2. +1 −0 templates/.htaccess
  3. +24 −0 templates/index.php
View
@@ -1,35 +1,12 @@
<?php
require 'vendor/autoload.php';
require 'forms/RegistrationForm.php';
require 'models/Connection.php';
require 'models/Reservations.php';
require 'vendor/autoload.php';
require 'forms/RegistrationForm.php';
require 'models/Connection.php';
require 'models/Reservations.php';
// enable debugger
Tracy\Debugger::enable();
?>
<!doctype html>
<html lang="cs">
<head>
<meta charset="utf-8">
<title>Reservation form</title>
<meta name="description" content="" />
<meta name="copyright" content="" />
<meta name="language" content="cs" />
<script src="js/netteForms.js"></script>
<style>
th { text-align: right; }
</style>
</head>
<body>
<?php
// enable debugger
Tracy\Debugger::enable();
// create registration form
$form = new RegistrationForm();
@@ -52,10 +29,5 @@
}
// renders the form
echo $form;
?>
</body>
</html>
// load template
include_once 'templates/index.php';
View
@@ -0,0 +1 @@
deny from all
View
@@ -0,0 +1,24 @@
<!doctype html>
<html lang="cs">
<head>
<meta charset="utf-8">
<title>Reservation form</title>
<meta name="description" content="" />
<meta name="copyright" content="" />
<meta name="language" content="cs" />
<script src="js/netteForms.js"></script>
<style>
th { text-align: right; }
</style>
</head>
<body>
<?=$form;?>
</body>
</html>

0 comments on commit d5db58f

Please sign in to comment.