public function render_null() { //$view = $this->path . $this->route . $this->versionroute . DIRECTORY_SEPARATOR . str_replace('.php', '.before.php', $this->view); $file = str_replace('.php', '.before.php', $this->view); $path = ""; $model_created = false; if (isset($this->model->created) && $this->model->created || isset($this->override["create"]) && $this->override["create"] < 0) { $model_created = true; } $this->html_before = ''; $view = \Routerunner\Helper::prepareLoader($this->path . $this->route, false, $this->versionroute, $path, $file, true, $model_created, $this->router); if ($view && file_exists($this->scaffold_root . $view)) { $html_path = $this->router->get_route(); if (!\runner::config('silent')) { $this->html_before .= '<!--Routerunner::Route(' . $html_path . '.before)//-->' . PHP_EOL; } $this->html_before .= \Routerunner\Routerunner::$slim->render($view, array('runner' => $this)); if ($this->i18n) { $this->html_before = str_replace(array_keys($this->i18n), array_values($this->i18n), $this->html_before); } \Routerunner\Routerunner::process($this); } //$view = $this->path . $this->route . $this->versionroute . DIRECTORY_SEPARATOR . str_replace('.php', '.null.php', $this->view); $file = str_replace('.php', '.null.php', $this->view); $path = ""; $model_created = false; if (isset($this->model->created) && $this->model->created || isset($this->override["create"]) && $this->override["create"] < 0) { $model_created = true; } $view = \Routerunner\Helper::prepareLoader($this->path . $this->route, false, $this->versionroute, $path, $file, true, $model_created, $this->router); if ($view && file_exists($this->scaffold_root . $view)) { $html_path = $this->router->get_route(); if (!\runner::config('silent')) { $this->html .= '<!--Routerunner::Route(' . $html_path . '.null)//-->' . PHP_EOL; } $this->html .= \Routerunner\Routerunner::$slim->render($view, array('runner' => $this)); if ($this->i18n) { $this->html = str_replace(array_keys($this->i18n), array_values($this->i18n), $this->html); } \Routerunner\Routerunner::process($this); $this->html_render = $this->html; } //$view = $this->path . $this->route . $this->versionroute . DIRECTORY_SEPARATOR . str_replace('.php', '.after.php', $this->view); $file = str_replace('.php', '.after.php', $this->view); $path = ""; $model_created = false; if (isset($this->model->created) && $this->model->created || isset($this->override["create"]) && $this->override["create"] < 0) { $model_created = true; } $this->html_after = ''; $view = \Routerunner\Helper::prepareLoader($this->path . $this->route, false, $this->versionroute, $path, $file, true, $model_created, $this->router); if ($view && file_exists($this->scaffold_root . $view)) { $html_path = $this->router->get_route(); if (!\runner::config('silent')) { $this->html_after .= '<!--Routerunner::Route(' . $html_path . '.after)//-->' . PHP_EOL; } $this->html_after .= \Routerunner\Routerunner::$slim->render($view, array('runner' => $this)); if ($this->i18n) { $this->html_after = str_replace(array_keys($this->i18n), array_values($this->i18n), $this->html_after); } \Routerunner\Routerunner::process($this); } $this->html = $this->backend_container($this->html_before . $this->html . $this->html_after); }