parent
cc0f30d3a2
commit
d4ba442832
@ -1,4 +0,0 @@
|
|||||||
<?php
|
|
||||||
static $user = 'nifranco';
|
|
||||||
static $pass = 'f3wn5ady';
|
|
||||||
?>
|
|
@ -1,3 +0,0 @@
|
|||||||
<?php
|
|
||||||
echo "php test"
|
|
||||||
?>
|
|
@ -1,3 +0,0 @@
|
|||||||
<?php
|
|
||||||
echo "<h1>2do test</h1>";
|
|
||||||
?>
|
|
@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once("../business/Task.php");
|
require_once("../business/Task.php");
|
||||||
|
require_once("../dal/TaskGateway.php");
|
||||||
echo "<h1>2do test</h1>";
|
echo "<h1>2do test</h1>";
|
||||||
|
|
||||||
$tache1 = new Task(1,'aTask','myTest','urgent');
|
$t = new Task(10,'testNico','laDescription','urgent','001');
|
||||||
|
//include("../dal/Connection.php");
|
||||||
|
include("credentials.php");
|
||||||
|
$con = new Connection('mysql:host=localhost;dbname=phpproject',$user,$pass);
|
||||||
|
$tgt = new TaskGateway($con);
|
||||||
|
$tgt->insert($t);
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in new issue