-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
37 lines (31 loc) · 1.4 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace wise\src\wireframe;
use wise\src\lib;
//require_once("../../../vendor/autoload.php");
// $y = array("Address" => "BenSt", "Duration" => "fixed");
/* HACKJOB
$z = array("Address" => "25th", "Duration" => "limited");
$x = new PageControllers("adp");
$x->newView("index");
$x->newView("BestPHPEverNow");
$x->mvc['index']->addModelField("Address");
$x->mvc['index']->addModelValid("Address",'/./');
$x->mvc['index']->addModelValid("Duration",'/./');
$x->mvc['index']->addModelData('index', $y);
$x->mvc['index']->view->addPartial("index.php");
$x->mvc['BestPHPEverNow']->view->addPartial("index.php");
$x->mvc['BestPHPEverNow']->view->addShared("index.php");
$x->mvc['BestPHPEverNow']->addModelValid("Address",'/1. /', "Please ask the admin to help you!");
$x->mvc['BestPHPEverNow']->addModelValid("Duration",'/./');
$x->mvc['BestPHPEverNow']->addModelData('index', $y);
$x->mvc['BestPHPEverNow']->addModelData('friends', $z);
$x->paginateModels('index', 'index.php',0,3);
$x->mvc['BestPHPEverNow']->view->removeDependency("shared","index.php");
$x->mvc['index']->view->writePage("index");
$x->save();
$x = $x->loadJSON();
echo json_encode($x);
$x->mvc['index']->view->createAction("TestAction/TestModule/TestFilter");
echo "<br><br><br>";
echo json_encode($x);
*/