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/"
|
||||
debug_template = "/../../application/view/templates/shared/debug.tpl"
|
||||
debugbar = true
|
||||
caching = true
|
||||
|
||||
[AUTOLOADER]
|
||||
iface.pos[] = "users"
|
||||
@@ -59,14 +60,15 @@ username = "YOURUSER"
|
||||
password = "YOURPASSWORD"
|
||||
hostname = "SERVERHOST"
|
||||
basename = "DATABASENAME"
|
||||
;;driver = "mysql"
|
||||
;;port = "3306"
|
||||
driver = "mysql"
|
||||
port = "3306"
|
||||
encoding = "UTF8"
|
||||
;;Postgres UNIXodbc
|
||||
driver = "psql"
|
||||
port = "5432"
|
||||
readonly = "No"
|
||||
multithreading = 4
|
||||
encoding = "UTF-8"
|
||||
;;driver = "psql"
|
||||
;;port = "5432"
|
||||
;;readonly = "No"
|
||||
;;multithreading = 4
|
||||
;;encoding = "UTF-8"
|
||||
|
||||
[GENERATOR]
|
||||
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->setTemplateDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["templates"]);
|
||||
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->setConfigDir(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["config_dir"]);
|
||||
self::$engine->setDebugTemplate(__DIR__ . Config::getInstance()->getConfig()[Engine::T_ENGINE]["debug_template"] );
|
||||
|
||||
Reference in New Issue
Block a user