diff --git a/examples/53oop.php b/examples/53oop.php index 71a2593..8607f1d 100644 --- a/examples/53oop.php +++ b/examples/53oop.php @@ -4,7 +4,7 @@ * Example: 5.3 OOP Anonymous Functions */ -$app = new Mite(array('debug' => TRUE, 'index' => '/mite/examples/53oop.php')); +$app = new Mite(array('debug' => TRUE, 'index' => __FILE__)); $app->route('/', function() use($app) { $app->view('views/index.tpl.php'); diff --git a/examples/extend.php b/examples/extend.php index b2e79af..24ff84f 100644 --- a/examples/extend.php +++ b/examples/extend.php @@ -7,10 +7,10 @@ class test extends Mite { function index() { - $this->view('views/index.tpl.php'); + $this->view('views\index.tpl.php'); } } -$app = new test(array('debug' => TRUE, 'index' => '/mite/examples/extend.php')); +$app = new test(array('debug' => TRUE, 'index' => __FILE__)); $app->route('/', 'index'); $app->run(); \ No newline at end of file diff --git a/examples/views/index.tpl.php b/examples/views/index.tpl.php index 8d9d97d..37289d3 100644 --- a/examples/views/index.tpl.php +++ b/examples/views/index.tpl.php @@ -15,13 +15,13 @@