我还从这个链接安装了codeigniter嗅探,并遵循了这个。现在,当我测试我的codeigniter代码时,我得到下面的错误
amits-iMac:~ amitpatil$ phpcs --standard=Codeignitor /Applications/AMPPS' with message 'Referenced sniff "CodeIgniter.Files.ClosingLocationComment" does not exist' in /U
我有这个代码的问题,我正在尝试做codeigniter的ajax,我有一个形式与用户名选择。如果我点击一个用户,我不会从数据库中获得其他变量。SQL查询运行良好。代码分为视图/控制器/模型。我正确地可视化了前端表单,但是当我单击名称时,没有从查询中得到任何输出,也没有显式的错误。<!doctype html> <head>
<title>How to send AJAX request in Codeigniter<
我用的是mamp而不是xamp。其中,本地主机配置为端口号81。对于mysql,它是3307。
对于我的情况,我不能使用端口80和3306。在database.php of configure In CodeIgniter中,如何指定主机详细信息?如果我放置localhost:81,它将显示未知的MySQL服务器主机'localhost:81‘(0)。如果我给localhost,就需要localhost:80来找到db。