php - Missing Css and Js files while specifying an action in the url in cakephp -
am working cakephp. , installed , configured everything. , using virtual host also. when call base url, css , js files loaded. when included method name in url, shows not found. think due url rewriting problem. project directory /var/www/html/betting/ .htaccess (/var/www/html/betting/.htaccess)
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ app/webroot/ [l] rewriterule (.*) app/webroot/$1 [l] </ifmodule>
and (/var/www/html/betting/app/.htaccess) is
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ webroot/ [l] rewriterule (.*) webroot/$1 [l] </ifmodule>
and (/var/www/html/betting/app/webroot/.htaccess) is
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ webroot/ [l] rewriterule (.*) webroot/$1 [l] </ifmodule>
if call url http://betting.spark.com/site fine. call http://betting.spark.com/site/index not loading css , js files. appreciated. :)
how link css file , js file? if place css , js file cakephp style. can link html , css file this. js file under webroot/js , css file under webroot/css
<?= $this->html->css(['bootstrap.css','bootstrap-theme.min.css']) ?> <?= $this->html->script(['jquery-2.0.3.min.js','bootstrap.js']); ?>
Comments
Post a Comment