Closed adiramardiani closed 9 years ago
Show your aliases.
VarDumper::dump(\Yii::$aliases)
["@common"]=>
string(32) "C:\xampp\htdocs\dashboard\common"
["@frontend"]=>
string(34) "C:\xampp\htdocs\dashboard/frontend"
["@backend"]=>
string(33) "C:\xampp\htdocs\dashboard/backend"
["@console"]=>
string(33) "C:\xampp\htdocs\dashboard/console"
["@app"]=>
string(33) "C:\xampp\htdocs\dashboard\backend"
["@vendor"]=>
string(40) "C:\xampp\htdocs\dashboard/../yii2/vendor"
["@bower"]=>
string(46) "C:\xampp\htdocs\dashboard/../yii2/vendor\bower"
["@npm"]=>
string(44) "C:\xampp\htdocs\dashboard/../yii2/vendor\npm"
["@runtime"]=>
string(41) "C:\xampp\htdocs\dashboard\backend\runtime"
["@webroot"]=>
string(37) "C:/xampp/htdocs/dashboard/backend/web"
["@web"]=>
string(16) "/dashboard/admin"
What path should be specified in the function "file_get_contents"?
I think the alias show true output, but why show error file_get_contents(C:\xampp\htdocs\dashboard/backend/web/dashboard/admin/assets/3b75345a/css/bootstrap.css)
the /dashboard/admin/
is repeat again
/dashboard/admin/
its controller? or path to /dashboard/admin/index.php
?
I use htaccess to hide frontend and backend folder with htaccess following this link
For frontend as root domain, and backend with admin
url, whether it be affects ?
With normal url is
http://localhost/dashboard/backend/web
and know with htaccess is http://localhost/dashboard/admin
No,
Url for frontend http://localhost/dashboard
Url for backend http://localhost/dashboard/admin/
Dashboard is my application name
I think we understood what a mistake. Seconds.
What the mistake ?
Please copy the full error trace.
In basePath
currently @web
?
Must be @backend/web
I use @app/web
or @web
or @backend/web
still give the wrong output path
Show your AssetBundle
, which connects bootstrap. Such an error is detected by using baseUrl
in AssetBundle
.
And show config AssetManager
.
namespace backend\assets;
use yii\web\AssetBundle;
class BootstrapAsset extends AssetBundle{
public $sourcePath = '@bower/bootstrap/dist';
public $css = [
'css/bootstrap.css',
];
public $js = [
'js/bootstrap.js',
];
}
And show config AssetManager
.
I'm not configure a assetManager
For now I do not activate Minify
'view' => [
'class' => '\rmrevin\yii\minify\View',
'enableMinify' => false,
'compress_output'=>true
]
Html compress is working well, but why are all my ajax page do not work, like GridView pagination etc ?
You can grant access to the code? Since we can not diagnose the problem remotely. We need to see how to configure the application.
I use web_path
and minify working well now, thanks :)
My configure like in your readme file
But why are all my ajax page do not work after compressed html page, like GridView pagination etc ?
@adiramardiani you use pjax?
Yes of course
Try using version 1.8.1
version for what ? pjax or ?
yii2-minify-view 1.8.1
Now it working well :) Sorry could not pull request or any others, I was very stupid :p Can only give advice or enhancement, not about technical
Thank you so much
Closed :)
I'm glad I could help! Good luck.
I use advanced application template with separate in backend and frontend, but give error
file_get_contents(C:\xampp\htdocs\dashboard/backend/web/dashboard/admin/assets/3b75345a/css/bootstrap.css): failed to open stream: No such file or directory
I use
@app/web
or@web
still give the wrong output path