Comments (7)
@fahmi182 please describe the situation then this happened.
from htmly.
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/
Do you know what this means?
from htmly.
I need more Information about the page you loaded. Which URL were you requesting?
from htmly.
i think admin page -- i have custom htmly :) here is http://www.defaka.com/sys/login
from htmly.
I think it's just because the cache file is not yet formed.
from htmly.
if(!login()) {
if (!file_exists($cachefile)) {
file_put_contents($cachefile, ob_get_contents());
}
}
from htmly.
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();
}
}
from htmly.
Related Issues (20)
- [FEATURE REQUEST] Plz add version number on footer HOT 6
- [FEATURE REQUEST] Admin to User Problem HOT 1
- [QUESTION] Theme Issue HOT 1
- [QUESTION] Sitemap.xml - is listing only my current year OR max 39 rows HOT 3
- Errror On Installation HOT 2
- Ukrainian language HOT 1
- Subscribe Module HOT 3
- Hello, there is some error on the sitemap HOT 6
- [FEATURE REQUEST] Menu editor, supports relative URL HOT 1
- May be we should not put tags in the markdown file title HOT 1
- [BUG REPORT] Attribute charset not allowed on element meta at this point. HOT 1
- [FEATURE REQUEST]How to integrate into root domain? HOT 2
- [QA] page break (pagination), blogroll not on home page, multimedia dir tree, relative urls etc. HOT 9
- Link previews not reflecting the real logos or the favicon - HTMLY/Ignite HOT 3
- Supporting Arabic commas under "tags"[FEATURE REQUEST] HOT 2
- draft posts pooled after common publish article click HOT 5
- [FEATURE REQUEST] STATUS heading/column in posts list HOT 1
- [FEATURE REQUEST] QOL features: splitting lang, visits counter HOT 3
- [QA] How can we list the blog (latest blog snippets) on the homepage which is outside the htmly folder? HOT 1
- Sub sub menu ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmly.