Version 0.9.5 beta - added
This commit is contained in:
@@ -5,6 +5,7 @@ templates_c = "/../../application/view/templates_c/"
|
|||||||
config_dir = "/../../application/view/configs/"
|
config_dir = "/../../application/view/configs/"
|
||||||
debug_template = "/../../application/view/templates/shared/debug.tpl"
|
debug_template = "/../../application/view/templates/shared/debug.tpl"
|
||||||
debugbar = true
|
debugbar = true
|
||||||
|
caching = true
|
||||||
|
|
||||||
[AUTOLOADER]
|
[AUTOLOADER]
|
||||||
iface.pos[] = "users"
|
iface.pos[] = "users"
|
||||||
@@ -59,14 +60,15 @@ username = "YOURUSER"
|
|||||||
password = "YOURPASSWORD"
|
password = "YOURPASSWORD"
|
||||||
hostname = "SERVERHOST"
|
hostname = "SERVERHOST"
|
||||||
basename = "DATABASENAME"
|
basename = "DATABASENAME"
|
||||||
;;driver = "mysql"
|
driver = "mysql"
|
||||||
;;port = "3306"
|
port = "3306"
|
||||||
|
encoding = "UTF8"
|
||||||
;;Postgres UNIXodbc
|
;;Postgres UNIXodbc
|
||||||
driver = "psql"
|
;;driver = "psql"
|
||||||
port = "5432"
|
;;port = "5432"
|
||||||
readonly = "No"
|
;;readonly = "No"
|
||||||
multithreading = 4
|
;;multithreading = 4
|
||||||
encoding = "UTF-8"
|
;;encoding = "UTF-8"
|
||||||
|
|
||||||
[GENERATOR]
|
[GENERATOR]
|
||||||
odbc = false
|
odbc = false
|
||||||
|
|||||||
0
application/view/cache/.gitkeep
vendored
Normal file
0
application/view/cache/.gitkeep
vendored
Normal file
@@ -68,6 +68,10 @@ class View implements IView
|
|||||||
self::$engine = new \Smarty();
|
self::$engine = new \Smarty();
|
||||||
self::$engine->setTemplateDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["templates"]);
|
self::$engine->setTemplateDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["templates"]);
|
||||||
self::$engine->setCompileDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["templates_c"]);
|
self::$engine->setCompileDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["templates_c"]);
|
||||||
|
if(array_key_exists('caching', Config::getInstance()->getConfig()[Engine::T_ENGINE]) && Config::getInstance()->getConfig()[Engine::T_ENGINE]['caching']==true)
|
||||||
|
{
|
||||||
|
self::$engine->setCaching( \Smarty::CACHING_LIFETIME_CURRENT );
|
||||||
|
}
|
||||||
self::$engine->setCacheDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["cache"]);
|
self::$engine->setCacheDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["cache"]);
|
||||||
self::$engine->setConfigDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["config_dir"]);
|
self::$engine->setConfigDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["config_dir"]);
|
||||||
self::$engine->setDebugTemplate(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["debug_template"] );
|
self::$engine->setDebugTemplate(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["debug_template"] );
|
||||||
|
|||||||
Reference in New Issue
Block a user