搜索不适用于php文件

时间:2015-09-14 03:23:27

标签: javascript php html5 .htaccess codeigniter

我正在测试一些不使用数据库的基本搜索。

问题是搜索是在HTML文件中工作但无法在php文件上工作(我使用的是codeigniter框架)。

这是html文件中的代码:

 <script src="js/search.js"></script>

这是我的CI php VIEW文件中的代码:

script type =“text / javascript”src =“application / views / ui / js / search.js”&gt;

我在视图上的htaccess文件:

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /webs/BCI/

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>

我的base_url函数适用于我的css文件,但它不会加载我的js文件夹中的JS文件。 是否还需要加载js文件的配置?

0 个答案:

没有答案
相关问题