如何设置Dreamweaver使用CodeIgniter?
我正在使用dreamweaver cs5和xampp。我在htdoc中创建了一个文件夹名CI,其中包含所有codeigniter文件和文件夹,即应用程序、系统、用户指南、license.txt、index.php和.htaccess(为空) 我的dreamweaver设置为:如何设置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
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页面。检查