mruz / base-app

The base application in PhalconPHP
63 stars 19 forks source link

Styles don't display #24

Closed amsharma9 closed 10 years ago

amsharma9 commented 10 years ago

Hello,

I have a minor problem which is probably not an issue but I couldn't solve it. I am new to Phalcon. I setup base-app on my Win 7 64bit machine running 64bit Wampserver. The pages display without any style. When I check Console (using inspect element) in Firefox, it shows me the following:

The stylesheet http://mruz.pl/base-app/css/bootstrap.min.css was not loaded because its MIME type, "text/html", is not "text/css". fdm_brcache.js:86
The stylesheet http://mruz.pl/base-app/min/css/fonts.css was not loaded because its MIME type, "text/html", is not "text/css". fdm_brcache.js:86
The stylesheet http://mruz.pl/base-app/min/css/app.css was not loaded because its MIME type, "text/html", is not "text/css". fdm_brcache.js:86
SyntaxError: syntax error jquery.min.js:1
SyntaxError: syntax error bootstrap.min.js:1
SyntaxError: syntax error flashclose.js:1

How do I solve this. I searched but couldn't find any solutions. The CSS files mentioned are already available locally, is the application still using them from your site.

If its not a problem can I have your email id.

Thanks Amal

mruz commented 10 years ago

Hi, Please try to change the _staticuri in the app/common/config/config.ini config file, eg

static_uri = "/"
amsharma9 commented 10 years ago

It did not work with "/". I changed it to below for it to work.

static_uri = "http://localhost/base-app/"

Thanks. Are you available on some forum on your website etc.

mruz commented 10 years ago

static_uri = "/base-app/"

also should work. I'm on phalcon.pl but this forum is in Polish.