Skip to content

Commit

Permalink
Fixed issue with headers
Browse files Browse the repository at this point in the history
  • Loading branch information
VeeeneX committed Jul 26, 2015
1 parent 14b4092 commit 739ac29
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ public function run($callable, $params = array())

$Rule->Instance = $Instance;
$this->Resolver->addRule($Rule);

$this->Resolver->callMethod($controllerClass, "onConstruct");
$this->Resolver->callMethod($controllerClass, "before");
$this->Resolver->callMethod($controllerClass, $controllermethod);
$this->Resolver->callMethod($controllerClass, "after");

//$Instance->Response->send();


$return = "";
$return .= (string) $this->Resolver->callMethod($controllerClass, "onConstruct");
$return .= (string) $this->Resolver->callMethod($controllerClass, "before");
$return .= (string) $this->Resolver->callMethod($controllerClass, $controllermethod);
$return .= (string) $this->Resolver->callMethod($controllerClass, "after");

$Instance->Response->send();
echo $return;
}

} else if (is_callable($callable)) {
Expand Down

0 comments on commit 739ac29

Please sign in to comment.