Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de03a1f215 | ||
|
|
01e9fd2de3 |
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "greg/framework",
|
||||
"name": "kletellier/framework",
|
||||
"description": "Mini MVC component",
|
||||
"type": "project",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -20,7 +20,7 @@ class Config
|
||||
if (isset($this->container["DEBUG"])) {
|
||||
if (($this->container["DEBUG"] == "false") && !is_file($this->cachepath)) {
|
||||
// production app cache not created
|
||||
$str = "<?php return " . json_encode(array_values($this->container)) . "; ?>";
|
||||
$str = "<?php return " . var_export($this->container, true) . "; ?>";
|
||||
file_put_contents($this->cachepath, $str);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user