Frameworks 安装Cjax Framewrok

Frameworks 安装Cjax Framewrok,frameworks,codeigniter-2,Frameworks,Codeigniter 2,我正在尝试安装Cjax框架,但未能成功管理它。我读过这本书和这本书 仍然无法管理安装。我的目录/文件结构如下所示: / /.htaccess /application/ /application/ajax.php /application/ajaxfw.php /application/cache/ /application/cjax/ /application/config/ /application/controllers/ /application/controllers/AjaxCon

我正在尝试安装Cjax框架,但未能成功管理它。我读过这本书和这本书

仍然无法管理安装。我的目录/文件结构如下所示:

/
/.htaccess

/application/
/application/ajax.php
/application/ajaxfw.php
/application/cache/
/application/cjax/
/application/config/
/application/controllers/
/application/controllers/AjaxController.php
/application/core/
/application/errors/
/application/helpers/
/application/hooks/
/application/language/
/application/libraries/
/application/logs/
/application/models/
/application/response/
/application/response/sample.php
/application/response/test.php
/application/views/
/application/test.php
/application/test2.php

/assets/
/assets/img,css,js -folders

/system/
/system/lots of more dirs
RewriteEngine on
RewriteCond $1 !^(index\.php|images|assets|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L] 
Hitting the following URLs:
http://mysite.com/ajax.php/test/test
http://mysite.com/ajax/test/test
http://mysite.com/ajax.php/test
http://mysite.com/ajax/test
我还启用了,所以我的URL中不需要index.php。我可以通过电子邮件访问它

.htaccess如下所示:

/
/.htaccess

/application/
/application/ajax.php
/application/ajaxfw.php
/application/cache/
/application/cjax/
/application/config/
/application/controllers/
/application/controllers/AjaxController.php
/application/core/
/application/errors/
/application/helpers/
/application/hooks/
/application/language/
/application/libraries/
/application/logs/
/application/models/
/application/response/
/application/response/sample.php
/application/response/test.php
/application/views/
/application/test.php
/application/test2.php

/assets/
/assets/img,css,js -folders

/system/
/system/lots of more dirs
RewriteEngine on
RewriteCond $1 !^(index\.php|images|assets|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L] 
Hitting the following URLs:
http://mysite.com/ajax.php/test/test
http://mysite.com/ajax/test/test
http://mysite.com/ajax.php/test
http://mysite.com/ajax/test
我得到以下信息:

404找不到页面

找不到您请求的页面


我做错了什么?如何修复安装?

我建议您使用超级htaccess:

    # Deny OR Allow Folder Indexes.
# Since we disable access to PHP files you 
# can leave this on without worries. 
# OR better yet, create a .htaccess file in
# the dir you want to allow browsing and
# set it to +Indexes
Options -Indexes

Options +FollowSymLinks

# Set the default file for indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    # mod_rewrite rules
    RewriteEngine on

    # The RewriteBase of the system (if you are using this sytem in a sub-folder).
    # RewriteBase /CodeIgniter_1.6.3/

    # This will make the site only accessible without the "www." 
    # (which will keep the subdomain-sensive config file happy)
    # If you want the site to be accessed WITH the "www." 
    # comment-out the following two lines.
    # RewriteCond %{HTTP_HOST} ^www\.site\.com$ [NC]
    # RewriteRule ^(.*)$ http://site.com/$1 [L,R=301]

    # If a controler can't be found - then issue a 404 error from PHP
    # Error messages (via the "error" plugin)
    # ErrorDocument 403 /index.php/403/
    # ErrorDocument 404 /index.php/404/
    # ErrorDocument 500 /index.php/500/

    # Deny any people (or bots) from the following sites: (to stop spam comments)
    # RewriteCond %{HTTP_REFERER} nienschanz\.ru [NC,OR]
    # RewriteCond %{HTTP_REFERER} porn\.com
    # RewriteRule .* - [F]
    # Note: if you are having trouble from a certain URL just 
    # add it above to forbide all visitors from that site.

    # You can also uncomment this if you know the IP:
    # Deny from 192.168.1.1

    # If the file is NOT the index.php file
    RewriteCond %{REQUEST_FILENAME} !index.php
    # Hide all PHP files so none can be accessed by HTTP
    RewriteRule (.*)\.php$ index.php/$1

    # If the file/dir is NOT real go to index
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [QSA,L]

</IfModule>

# If Mod_ewrite is NOT installed go to index.php
<IfModule !mod_rewrite.c>
    ErrorDocument 404 index.php
</IfModule> 
#拒绝或允许文件夹索引。
#因为我们禁用了对PHP文件的访问,所以您
#你可以不用担心就把它打开。
#或者更好的是,在中创建一个.htaccess文件
#您要允许浏览的目录,以及
#将其设置为+索引
选项-索引
选项+FollowSymLinks
#设置索引的默认文件
DirectoryIndex.php
#mod_重写规则
重新启动发动机
#系统的基础(如果您在子文件夹中使用此系统)。
#重写BASE/CodeIgniter_1.6.3/
#这将使该网站仅可在没有“www”的情况下访问
#(这将使子域sensive配置文件保持愉快)
#如果您希望通过“www”访问该网站
#注释掉下面两行。
#重写cond%{HTTP_HOST}^www\.site\.com$[NC]
#重写规则^(.*)$http://site.com/$1[L,R=301]
#如果找不到控制器,则从PHP发出404错误
#错误消息(通过“错误”插件)
#ErrorDocument 403/index.php/403/
#ErrorDocument 404/index.php/404/
#ErrorDocument 500/index.php/500/
#拒绝以下网站的任何人(或机器人):(停止垃圾邮件评论)
#重写cond%{HTTP_REFERER}nienschanz\.ru[NC,或]
#重写cond%{HTTP_REFERER}porn\.com
#重写规则。*-[F]
#注意:如果您在某个URL上遇到问题,只需
#将其添加到上面以禁止该站点的所有访问者。
#如果您知道IP,也可以取消注释:
#从192.168.1.1中拒绝
#如果文件不是index.php文件
重写cond%{REQUEST_FILENAME}!index.php
#隐藏所有PHP文件,以便HTTP无法访问任何文件
重写规则(.*)\.php$index.php/$1
#如果文件/dir不是实文件,请转到索引
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1[QSA,L]
#如果未安装Mod_ewrite,请转到index.php
ErrorDocument 404 index.php

有一个新版本的Cjax 5.9,JU插入CodeIgniter()