/home/appgamecom/domains/appgamehk.com/public_html/ruhk/views/news_detail.php
$this->layout('website_layout');
?>
<div class="page_banner" style="background: url(/backend/upload/2e04d5-1503818997.jpg) no-repeat 0px 0px;"></div>
<div class="contact">
<div class="container">
<div class="agileits-title">
<h2><?= $news->name; ?></h2>
</div>
<div class="agile-contact-form">
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/views/news_detail.php
$this->layout('website_layout');
?>
<div class="page_banner" style="background: url(/backend/upload/2e04d5-1503818997.jpg) no-repeat 0px 0px;"></div>
<div class="contact">
<div class="container">
<div class="agileits-title">
<h2><?= $news->name; ?></h2>
</div>
<div class="agile-contact-form">
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/plates/src/Template/Template.php
unset($data);
extract($this->data);
ob_start();
if ($this->exists()) {
include $this->path();
} else {
throw new LogicException(
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/plates/src/Engine.php
* Create a new template and render it.
* @param string $name
* @param array $data
* @return string
*/
public function render($name, array $data = array())
{
return $this->make($name)->render($data);
}
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/src/App/Application.php
}
public function getPlates() {
return $this->plates;
}
public function render($name, $data = []) {
return $this->plates->render($name, $data);
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/index.php
$response->getBody()->write($html);
return $response;
});
$route->map("GET", "/news/{id}", function (ServerRequestInterface $request, ResponseInterface $response, array $args) use ($app) {
$html = $app->render("news_detail", [
"news" => R::findOne("news", " id = ?", [$args['id']])
]);
$response->getBody()->write($html);
return $response;
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Strategy/RequestResponseStrategy.php
*/
public function dispatch(callable $controller, array $vars, Route $route = null)
{
$response = call_user_func_array($controller, [
$this->getRequest(),
$this->getResponse(),
$vars
]);
return $this->determineResponse($response);
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Route.php
$strategy->setRequest($request);
}
if ($strategy instanceof ResponseAwareInterface) {
$strategy->setResponse($response);
}
return $strategy->dispatch($callable, $vars, $this);
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Dispatcher.php
*/
protected function handleFound(
callable $route,
ServerRequestInterface $request,
ResponseInterface $response,
array $vars
) {
return call_user_func_array($route, [$request, $response, $vars]);
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Dispatcher.php
}
if ($match[0] === FastRoute::METHOD_NOT_ALLOWED) {
$allowed = (array) $match[1];
return $this->handleNotAllowed($response, $allowed);
}
return $this->handleFound($match[1], $request, $response, (array) $match[2]);
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/RouteCollection.php
*
* @return \Psr\Http\Message\ResponseInterface
*/
public function dispatch(ServerRequestInterface $request, ResponseInterface $response)
{
$dispatcher = $this->getDispatcher($request);
return $dispatcher->handle($request, $response);
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/src/App/Application.php
* @return \League\Route\RouteCollection
*/
public function getRoute() {
return $this->route;
}
public function run() {
$response = $this->route->dispatch($this->container->get('request'),$this->container->get('response'));
$this->container->get('emitter')->emit($response);
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/index.php
//default TC
$route->map("GET", "/", function (ServerRequestInterface $request, ResponseInterface $response, array $args) use ($app) {
header("Location: http://" . $_SERVER['SERVER_NAME'] . "/tc");
exit();
});
try {
$app->run();
} catch (NotFoundException $ex) {
echo "Not Found";