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)
- Running HTMLy on a VPS with Yunohost HOT 2
- HTMLy with Reseller Hosting HOT 2
- Installer: Port 443 in site.url config variable HOT 2
- Selecting images from default image folder HOT 4
- Installer: Bad site.url config variable on Windows HOT 1
- Help with Install ... HOT 12
- Is 2fa possible to setup with HTMLy?
- CSRF Token not correct HOT 1
- SVG Icons HOT 1
- Scheduled publishing HOT 4
- Purpose plugins-directory HOT 10
- Social Share Previous Plugin?
- strftime function - How add a published time not only a date? HOT 7
- Is this project active? HOT 2
- A pointer for improvements HOT 24
- feed/rss - PHP Fatal error: Uncaught Error: Class "SimpleXMLElement" not found HOT 2
- Escaped backslashes removed when editing posts. HOT 4
- RSS into a page HOT 8
- How can i generate sitemap.
- When viewing site on a phone browser the static pages do not display or refresh correctly HOT 5
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.