-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error logs #58
Comments
@fahmi182 please describe the situation then this happened. |
Hello, sorry my previous use Indonesian. Error.logs there after I update the latest version, and I use htmly with some modified :) . this http://www.defaka.com/ |
I need more Information about the page you loaded. Which URL were you requesting? |
i think admin page -- i have custom htmly :) here is http://www.defaka.com/sys/login |
I think it's just because the cache file is not yet formed. |
|
test this: function render($view, $locals = null, $layout = null) {
$login = login();
if(!$login) {
$c = str_replace('/', '#', str_replace('?', '~', $_SERVER['REQUEST_URI']));
$dir = 'cache/page';
$cachefile = $dir. '/' . $c . '.cache';
if(is_dir($dir) === false) {
mkdir($dir, 0777, true);
}
}
if (is_array($locals) && count($locals)) {
extract($locals, EXTR_SKIP);
}
if (($view_root = config('views.root')) == null)
error(500, "[views.root] is not set");
ob_start();
include "{$view_root}/{$view}.html.php";
content(trim(ob_get_clean()));
if ($layout !== false) {
if ($layout == null) {
$layout = config('views.layout');
$layout = ($layout == null) ? 'layout' : $layout;
}
$layout = "{$view_root}/{$layout}.html.php";
header('Content-type: text/html; charset=utf-8');
ob_start();
require $layout;
if(!$login) {
if (!file_exists($cachefile)) {
file_put_contents($cachefile, ob_get_contents());
}
}
echo trim(ob_get_clean());
} else {
echo content();
}
} |
Mas Dan, kalau error logs ini maksudnya apa ya?
The text was updated successfully, but these errors were encountered: