Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

final procedural project

ER authored on 13/04/2012 10:17:34
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,37 @@
1
+<?php
2
+
3
+define('PUBLIC_PATH', __DIR__);
4
+	define(  'APPLICATION_PATH', dirname(__DIR__) .
5
+			 DIRECTORY_SEPARATOR . 'application'
6
+			);
7
+	define(
8
+		'PAGES_PATH',
9
+		APPLICATION_PATH . DIRECTORY_SEPARATOR .
10
+		'pages'
11
+	 );
12
+	 define(
13
+		'INC_PATH',
14
+		APPLICATION_PATH . DIRECTORY_SEPARATOR .
15
+		'includes'
16
+	 );
17
+	 define(
18
+		'TPL_PATH',
19
+		APPLICATION_PATH . DIRECTORY_SEPARATOR .
20
+		'templates'
21
+	 );
22
+	 define(
23
+		'CLASS_PATH',
24
+		APPLICATION_PATH . DIRECTORY_SEPARATOR .
25
+		'classes'
26
+	 );
27
+
28
+ini_set('display_errors',1);
29
+ // Appel du routage d'url en PHP
30
+require_once CLASS_PATH . DIRECTORY_SEPARATOR .'url.class.php';
31
+$page = Url::url_rewrite();
32
+
33
+ // Appel du coeur de l'application
34
+require_once CLASS_PATH . DIRECTORY_SEPARATOR . 'application.class.php';
35
+$content = Application::load_body($page);
36
+Application::load_layout($content);
37
+