First of all excuse me for my weak english skill.
Ive read in http://piwik.org/docs/include-piwik-in-your-project/ that i can use PIWIK_USER_PATH and PIWIK_INCLUDE_PATH to change where all piwik files are located. So i
ve made an test:
/public/[domain root]
/public/index.php
/public/bootstrap.php
/public/plugins/[all plugins]
/public/themes/[all themes]
/lib/piwik/[all piwik files]
Now in bootsrap i set PIWIK_USER_PATH and PIWIK_INCLUDE_PATH to ‘…/lib/piwik/’. When i enter whatever.domain/index.php piwik loads without css i look around in AssetManager and found that assets path is tested using PIWIK_DOCUMENT_ROOT so i tried to override PIWIK_DOCUMENT_ROOT instead (in index.php)
After this all assets loaded and piwik is working.
(important to reproduce this bug you must clear tmp/assets)
The whole problems comes probably from getAbsoluteLocation in AssetManager which uses PIWIK_DOCUMENT_ROOT instead of PIWIK_USER_PATH when used in self::validateCssFile or self::validateJsFile
private static function getAbsoluteLocation ($relativePath)
{
// served by web server directly, so must be a public path
return PIWIK_DOCUMENT_ROOT . "/" . $relativePath;
}
shouldn`t it be ?
private static function getAbsoluteLocation ($relativePath)
{
// served by web server directly, so must be a public path
return PIWIK_USER_PATH . "/" . $relativePath;
}
Am i doing something wrong or should i create new bug ticket?
By the way shouldnt there be some distinction between plugin frontend and backend for example images css from plugins put into themes or some other place for front end?