/home/kotech/web/btl3d.c12.kotechwb.com/public_html/views/2022/course.php
<?php
use Kotech\Model\Course;
$this->layout('2022/website_layout');
$course_obj = new Course();
$course = $course_obj->getCourse($slug);
$others = $course_obj->getRelated($course->id);
?>
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/views/2022/course.php
<?php
use Kotech\Model\Course;
$this->layout('2022/website_layout');
$course_obj = new Course();
$course = $course_obj->getCourse($slug);
$others = $course_obj->getRelated($course->id);
?>
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/vendor/league/plates/src/Template/Template.php
try {
$level = ob_get_level();
ob_start();
(function() {
extract($this->data);
include func_get_arg(0);
})($path);
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/vendor/league/plates/src/Template/Template.php
try {
$level = ob_get_level();
ob_start();
(function() {
extract($this->data);
include func_get_arg(0);
})($path);
$content = ob_get_clean();
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/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/kotech/web/btl3d.c12.kotechwb.com/public_html/src/App/Application.php
}
public function renderPDF($name, $data = []) {
return $this->plates->render('pdf/' . $name, $data);
}
public function newRender($name, $data = []) {
return $this->plates->render('2022/' . $name, $data);
}
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/index.php
$app->plates->addData([
"share_title" => $course->share_title,
"share_image" => $course->share_image,
"share_desc" => $course->share_desc
]);
}
$html = $app->newRender("course" , ['slug' => $args['slug']]);
$response->getBody()->write($html);
return $response;
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/vendor/league/route/src/Strategy/RequestResponseStrategy.php
* {@inheritdoc}
*/
public function dispatch(callable $controller, array $vars, Route $route = null)
{
$response = call_user_func_array($controller, [
$this->getRequest(),
$this->getResponse(),
$vars
]);
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/vendor/league/route/src/Route.php
$strategy->setRequest($request);
}
if ($strategy instanceof ResponseAwareInterface) {
$strategy->setResponse($response);
}
return $strategy->dispatch($callable, $vars, $this);
}
/home/kotech/web/btl3d.c12.kotechwb.com/public_html/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/kotech/web/btl3d.c12.kotechwb.com/public_html/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/kotech/web/btl3d.c12.kotechwb.com/public_html/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/kotech/web/btl3d.c12.kotechwb.com/public_html/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/kotech/web/btl3d.c12.kotechwb.com/public_html/index.php
$_SESSION['email_result'] = 'success';
header('Location:https://btl3d.com/platform');
exit();
});
try {
$app->run();
} catch (NotFoundException $ex) {
echo "Not Found";