PerlaHM commited on
Commit
0824a25
·
1 Parent(s): 1293873

Agregado header y footer a todas las paginas

Browse files
Files changed (2) hide show
  1. app/constantes.php +6 -9
  2. app/variables.php +7 -9
app/constantes.php CHANGED
@@ -1,11 +1,8 @@
1
- <!DOCTYPE html>
2
- <html
3
- <body>
4
-
5
  <?php
6
- $txt="My second PHP SCRIPT!";
 
7
 
8
- echo $txt;
9
- ?>
10
- </body>
11
- </html>
 
1
+ <?php include_once('inc/header.php');?>
 
 
 
2
  <?php
3
+ define("MESSAGE","Happy Learning!");
4
+
5
 
6
+ echo MESSAGE;
7
+ ?>
8
+ <?php include_once('inc/footer.php');?>
 
app/variables.php CHANGED
@@ -1,10 +1,8 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <body>
4
- <?php
5
 
6
- define("MESSAGE" "Happy Learning!");
7
- echo MESSAGE
8
- ?>
9
- </body>
10
- </html>
 
1
+ <?php include_once('inc/header.php');?>
2
+ <?php
3
+ define("MESSAGE","Happy Learning!");
 
4
 
5
+
6
+ echo MESSAGE;
7
+ ?>
8
+ <?php include_once('inc/footer.php');?>