Summary Files Commits Branches @commit @diff @stats
path: root / src / index.php
diff options
context:
space:
mode:
1 files changed, 3 insertions, 2 deletions
-rw-r--r--src/index.php5
diff --git a/src/index.php b/src/index.php
index 5fefff4..ecebcd9 100644
--- a/src/index.php
+++ b/src/index.php
@@ -2,8 +2,9 @@
<?php
include_once("models/JobOffer.php");
- $jb = new JobOffer("a", "", "", 0);
+ $jb = new JobOffer("Test", "A test", "TheTest", 11);
+ JobOffer::insertInDB($jb);
foreach(JobOffer::getAll() as $key => $obj) {
- echo $obj->id . "<br>";
+ echo "{$obj->id} {$obj->title}<br>";
}
?>