Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何设置Dreamweaver使用CodeIgniter?_Codeigniter_Dreamweaver - Fatal编程技术网

如何设置Dreamweaver使用CodeIgniter?

如何设置Dreamweaver使用CodeIgniter?,codeigniter,dreamweaver,Codeigniter,Dreamweaver,我正在使用dreamweaver cs5和xampp。我在htdoc中创建了一个文件夹名CI,其中包含所有codeigniter文件和文件夹,即应用程序、系统、用户指南、license.txt、index.php和.htaccess(为空) 我的dreamweaver设置为: Site Site Name: codeIgniter Local Site Folder: C:\xampp\htdocs\CI Servers ServerName: codeIgniter Connect

我正在使用dreamweaver cs5和xampp。我在htdoc中创建了一个文件夹名CI,其中包含所有codeigniter文件和文件夹,即应用程序、系统、用户指南、license.txt、index.php和.htaccess(为空)

我的dreamweaver设置为:

Site
Site Name: codeIgniter   Local Site Folder: C:\xampp\htdocs\CI

Servers
ServerName: codeIgniter   Connect using: Local/Network
Server Folder: c:\xampp\htdocs\CI\   Web URL: http://localhost/site/

and i unticked remote server and ticked testing server.
我的codeigniter设置为:

$config['base_url'] = 'http://localhost/site/';
$autoload['libraries'] = array('database');
and created site.php in the controller.
我在dreamweaver中遇到的错误是: 无法解析动态相关文件,因为站点定义不正确 此服务器正确。请重试|安装

另外,当我试图以实时视图或浏览器的形式查看它时,它会将我带到 localhost/site/application/controllers/site.php,表示找不到对象


但是使用记事本++一切都很好,我看不出设置codeigniter有什么错

您的weburl必须与您的站点根目录匹配,将您的weburl和
$config['base\u url']
更改为
http://localhost/CI/
并检查您的服务器模型是否设置为php/mysql。

好的,现在它没有显示错误,但现在,如果我尝试通过dreamweaver浏览器预览选项预览页面,则不允许直接脚本访问,因为这会将我带到localhost/CI/application/controllers/site.php。但是如果我手动将localhost/CI/index.php/site/home放在浏览器中,我可以看到页面是的,它应该是这样工作的,所有请求都会通过index.php页面。检查