vova07 / yii2-start

Yii2-Start application
Other
274 stars 115 forks source link

Backend completely without any styling #161

Open larry-tx opened 8 years ago

larry-tx commented 8 years ago

I just installed a Yii2 site using your Yii2-start. Everything went fine, but the backend has no styling. It's clearly not picking up the AdminLTE CSS.

larry-tx commented 8 years ago

I think I've figured out the root of the problem but not how to get rid of it. I have two entirely separate URLs: one for the frontend and one for the backend. For some reason, this module insists on inserting /backend/ after the URL for my backend! I never asked it to do that. Of course, then everything totally crashes! What a crazy idea! It goes looking for something like http://myurl.com/backend/css and of course that doesn't exist. What it should be looking for is http://myurl.com/css. I've used Yii2 for years and never had this problem. How on earth to I get rid of that ridiculous '/backend/' in the URLs?

buter747 commented 7 years ago

Привет. У меня была такая же проблема после установки yii2-start (Winows 7, Apache, XAMPP)

Решение:

Set document roots of your Web server: /path/to/yii2-start/ Use the URL http://yii2-start/ to access application frontend. Use the URL http://yii2-start/backend/ to access application backend.

И все оллрайт.