aboutsummaryrefslogtreecommitdiff
path: root/public/test.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-10 21:43:24 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-10 21:43:24 +0100
commit2f363e8fa26ab849539e64ff7caa21bd164e8979 (patch)
tree238f2689e44bfc26329f970ced4c678b1ab6818d /public/test.php
parent687b1f851abbb28750d2921d4f5beaac24b3249d (diff)
downloadwcms-2f363e8fa26ab849539e64ff7caa21bd164e8979.tar.gz
wcms-2f363e8fa26ab849539e64ff7caa21bd164e8979.zip
sidebars-html-inserts
Diffstat (limited to 'public/test.php')
-rw-r--r--public/test.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/public/test.php b/public/test.php
index 7e24cd6..50ff4b1 100644
--- a/public/test.php
+++ b/public/test.php
@@ -18,33 +18,9 @@ $art = new Art2(['id' => 'rr']);
$art->reset();
$art->hydrate((['description' => 'fdsfs', 'secure' => 0, 'render' => $render2]));
-var_dump($art);
-$artencoded = json_encode($art);
-var_dump($artencoded);
-class Person
-{
- public $id;
- public $name;
- public $table = ['coucou', 'lol', 'chouette'];
- public $date;
-
- public function __construct(array $data)
- {
- $this->id = $data['id'];
- $this->name = $data['name'];
- $this->date = new DateTimeImmutable();
- }
-}
-
-$person = new Person(array('id' => 1, 'name' => 'Amir'));
-$jsonperson = json_encode($person);
-
-var_dump($jsonperson);
-
-var_dump(json_decode($jsonperson));