diff options
-rw-r--r-- | app/php/application.xml | 3 | ||||
-rw-r--r-- | app/php/caches.xml | 12 | ||||
-rw-r--r-- | http/_assets/.gitignore (renamed from http/assets/.gitignore) | 0 | ||||
-rw-r--r-- | http/index.php | 4 |
4 files changed, 17 insertions, 2 deletions
diff --git a/app/php/application.xml b/app/php/application.xml index ebe1955..a56206c 100644 --- a/app/php/application.xml +++ b/app/php/application.xml @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <application id="http" mode="Debug"> + <include file="Application.caches" /> + <include file="Application.db.config" /> <include file="Application.model.config" /> <include file="Application.facades.config" /> @@ -13,7 +15,6 @@ <include file="Application.controls.config" /> <modules> - <module id="cache" class="System.Caching.TDbCache" /> <!-- <module id="log" class="System.Util.TLogRouter"> <route class="TBrowserLogRoute" Levels="Debug" diff --git a/app/php/caches.xml b/app/php/caches.xml new file mode 100644 index 0000000..af2fd92 --- /dev/null +++ b/app/php/caches.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <paths> + <alias id="Web" path="../../http/" /> + </paths> + <modules> + <module id="cache" class="System.Caching.TDbCache" /> + <module id="asset" class="System.Web.TAssetManager" + BasePath="Web._assets" + BaseUrl="_assets" /> + </modules> +</configuration> diff --git a/http/assets/.gitignore b/http/_assets/.gitignore index 72e8ffc..72e8ffc 100644 --- a/http/assets/.gitignore +++ b/http/_assets/.gitignore diff --git a/http/index.php b/http/index.php index 26d9992..24743f8 100644 --- a/http/index.php +++ b/http/index.php @@ -3,7 +3,7 @@ // The following directory checks may be removed if performance is required $basePath = dirname(__FILE__); $frameworkPath = $basePath . '/../lib/prado/framework/prado.php'; -$assetsPath = $basePath . '/assets/'; +$assetsPath = $basePath . '/_assets/'; $applicationPath = $basePath . '/../app/php/'; $runtimePath = $basePath . '/../cache/prado/'; @@ -19,3 +19,5 @@ require_once($frameworkPath); $application = new TApplication($applicationPath); $application->run(); + +?> |