.htaccess - ZF2 mime type problems -
and happy 2016 ;-)
i'm trying learn zf2, , have problems dont' know how resolve.
first, have know project running under vagrant. have 2 modules:
- admin
- application
i have layout each module.
in admin layout module, have style , js file: js , css files in public folder.
<?= $this ->headlink(array('rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basepath() . '/img/favicon.ico')) ->prependstylesheet($this->basepath('bower_components/bootstrap/dist/css/bootstrap.min.css')) ->prependstylesheet($this->basepath('bower_components/font-awesome/css/font-awesome.min.css')) ->prependstylesheet($this->basepath('bower_components/ionicons/css/ionicons.min.css')) ->prependstylesheet($this->basepath('css/adminlte.min.css')) ->prependstylesheet($this->basepath('css/skins/skin-blue.min.css')) ; ?> <?= $this->inlinescript() ->prependfile($this->basepath('bower_components/jquery/dist/jquery.min.js')) ->prependfile($this->basepath('bower_components/bootstrap/dist/js/bootstrap.min.js')) ->prependfile($this->basepath('js/app.min.js')) ;?>
for css file, have errors in browser:
resource interpreted stylesheet transferred mime type text/html
and js, have problems too:
bootstrap's javascript requires jquery
i know js error, append when load boostrap.js before jquery.js. here, it's not case!
i don't know if problem comes layout integration of css , js files, or if forgot in controller, or in configuration. may it's problem vagrant too?
i have htaccess:
rewriteengine on rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewriterule ^.*$ /index.php [nc,l]
please, need because i'm lost ;-)
thanks advice/documentation or else.
Comments
Post a Comment