From 970da9fd7273827357100f89e5de33b55cf44d71 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 23 Apr 2016 00:53:14 +0200 Subject: * moving stuff around (general classes from components to web) --- app/php/web/AssetManager.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/php/web/AssetManager.php (limited to 'app/php/web/AssetManager.php') diff --git a/app/php/web/AssetManager.php b/app/php/web/AssetManager.php new file mode 100644 index 0000000..1094917 --- /dev/null +++ b/app/php/web/AssetManager.php @@ -0,0 +1,29 @@ +BaseUrl === NULL) { + $appWebPath = preg_replace( + '#' . $this->Application->Request->ApplicationUrl . '$#', + '', + $this->Application->Request->ApplicationFilePath + ); + $appBaseUrl = preg_replace( + '#^' . $appWebPath . '#', + '', + dirname($this->Application->Request->ApplicationFilePath) + ); + $this->BaseUrl = $appBaseUrl + . preg_replace( + '#^' . Prado::getPathOfNamespace('Web') . '#', + '', + $this->BasePath + ); + } + parent::init($config); + } + +} + +?> -- cgit v1.2.3