... | ... |
@@ -4,10 +4,10 @@ error_reporting(-1); |
4 | 4 |
ini_set('display_errors', 1); |
5 | 5 |
|
6 | 6 |
define("APPLICATION_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."application"); |
7 |
-define("CLASSES_PATH", APPLICATION_PATH.DIRECTORY_SEPARATOR."class"); |
|
7 |
+define("VENDOR_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."vendor"); |
|
8 | 8 |
|
9 |
+//require APPLICATION_PATH.DIRECTORY_SEPARATOR."autoloader.php"; |
|
10 |
+require VENDOR_PATH.DIRECTORY_SEPARATOR."autoload.php"; |
|
9 | 11 |
|
10 |
-require CLASSES_PATH.DIRECTORY_SEPARATOR."application.class.php"; |
|
11 |
- |
|
12 |
-$poo_v1 = new Application(); |
|
12 |
+$poo_v1 = new \MVC\Classe\Application(); |
|
13 | 13 |
$poo_v1->launch(); |
1 | 1 |
old mode 100755 |
2 | 2 |
new mode 100644 |
... | ... |
@@ -1,8 +1,9 @@ |
1 |
-<?php |
|
1 |
+<?php |
|
2 | 2 |
|
3 | 3 |
define("APPLICATION_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."application"); |
4 | 4 |
define("CLASSES_PATH", APPLICATION_PATH.DIRECTORY_SEPARATOR."class"); |
5 | 5 |
|
6 |
+ |
|
6 | 7 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."application.class.php"; |
7 | 8 |
|
8 | 9 |
$poo_v1 = new Application(); |
... | ... |
@@ -1,9 +1,9 @@ |
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
define("APPLICATION_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."application"); |
4 |
-define("CLASSES_PATH", APPLICATION_PATH.DIRECTORY_SEPARATOR."classes"); |
|
4 |
+define("CLASSES_PATH", APPLICATION_PATH.DIRECTORY_SEPARATOR."class"); |
|
5 | 5 |
|
6 | 6 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."application.class.php"; |
7 | 7 |
|
8 |
-$poo_v1 = new Applications(); |
|
9 |
-$poo_v1->launch(); |
|
10 | 8 |
\ No newline at end of file |
9 |
+$poo_v1 = new Application(); |
|
10 |
+$poo_v1->launch(); |
Dear IP-formation.
Emmanuel ROY authored on 15/04/2015 14:45:54... | ... |
@@ -1,11 +1,9 @@ |
1 |
-<h1>Site1.debian-07.formation.dev</h1> |
|
2 |
-<?php |
|
1 |
+<?php |
|
3 | 2 |
|
4 |
-ini_set('display_errors', 1); |
|
3 |
+define("APPLICATION_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."application"); |
|
4 |
+define("CLASSES_PATH", APPLICATION_PATH.DIRECTORY_SEPARATOR."classes"); |
|
5 | 5 |
|
6 |
-require_once 'test0.php'; |
|
7 |
-require_once 'test1.php'; |
|
6 |
+require CLASSES_PATH.DIRECTORY_SEPARATOR."application.class.php"; |
|
8 | 7 |
|
9 |
-for ($i=0;$i<10;$i++) { |
|
10 |
- echo $i; |
|
11 |
-} |
|
8 |
+$poo_v1 = new Applications(); |
|
9 |
+$poo_v1->launch(); |
|
12 | 10 |
\ No newline at end of file |