summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-19 16:05:14 +0200
committeremkael <emkael@tlen.pl>2016-04-19 16:06:08 +0200
commitf3e8c1f081ac2cda737d4195f204a47143535ddb (patch)
tree349a863e8db8d40eb9dc5cc68900937bd7ba4684
parent7af427b95448ca84942cca13571615fae0184d4d (diff)
* setting 'Web' alias path in entry script
-rw-r--r--app/php/caches.xml3
-rw-r--r--http/index.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/app/php/caches.xml b/app/php/caches.xml
index af2fd92..90e3e35 100644
--- a/app/php/caches.xml
+++ b/app/php/caches.xml
@@ -1,8 +1,5 @@
<?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"
diff --git a/http/index.php b/http/index.php
index c3aa6b8..f5e04d6 100644
--- a/http/index.php
+++ b/http/index.php
@@ -6,6 +6,8 @@ $applicationPath = $basePath . '/../app/php/';
require_once($frameworkPath);
+Prado::setPathOfAlias('Web', $basePath);
+
$application = new TApplication($applicationPath);
$application->run();