diff --git a/controller/Router.php b/controller/Router.php index e53f8f0..f650203 100644 --- a/controller/Router.php +++ b/controller/Router.php @@ -818,7 +818,7 @@ public function start() { } // Is this exact route cached? if ($this->doRouteCache && - $rule = $cm->get("Router:" . $this->name . ":$path")) { + $rule = $cm->get("Router:" . $this->name . ':' . $_SERVER['REQUEST_METHOD'] . ":$path")) { $success = $this->passRequest($rule['controller'], $rule['function'], $rule['args'], $rule['argProtect']); if ($success) @@ -880,7 +880,7 @@ public function start() { if ($success) { // Cache the route if ($this->doRouteCache) { - $cm->set("Router:" . $this->name . ":$path", array( + $cm->set("Router:" . $this->name . ':' . $_SERVER['REQUEST_METHOD'] . ":$path", array( 'controller' => $vars[self::KEYWORD_CONTROLLER], 'function' => $vars[self::KEYWORD_FUNCTION], 'args' => $args, diff --git a/view/engines/hydrogen/nodes/AppendNode.php b/view/engines/hydrogen/nodes/AppendNode.php new file mode 100644 index 0000000..b7647ba --- /dev/null +++ b/view/engines/hydrogen/nodes/AppendNode.php @@ -0,0 +1,25 @@ +variable = &$variable; + } + + public function render($phpFile) { + $phpFile->addPageContent(file_get_contents($this->variable)); + } +} + +?> \ No newline at end of file diff --git a/view/engines/hydrogen/tags/AppendTag.php b/view/engines/hydrogen/tags/AppendTag.php new file mode 100644 index 0000000..205d743 --- /dev/null +++ b/view/engines/hydrogen/tags/AppendTag.php @@ -0,0 +1,35 @@ + \ No newline at end of file