简体   繁体   English

Grocerycrud:读取,编辑和删除操作不起作用

[英]Grocerycrud: Read, Edit and Delete operations won't work

Hi I've been testing Grocerycrud on my hosting server, but there's a couple of issues I've been facing and I've been pulling my hair for hours. 嗨,我已经在托管服务器上测试了Grocerycrud,但是我遇到了一些问题,而且已经花了好几个小时了。

The one thing I can´t get is why I can't perform the READ , EDIT and DELETE operations, I get all the parameters apparently being passed to the URL, but NO FORM is displayed and when it comes to DELETING records, the selected record IS NOT deleted after I click yes on the JavaScript alert displayed by the browser. 我无法获得的一件事就是为什么我无法执行READEDITDELETE操作,显然所有参数都传递给了URL,但是没有显示FORM ,并且涉及DELETING记录时,已选择之后我点击是由浏览器显示的JavaScript警告记录不会被删除。

Is it something related to the set_crud_url_path function? 它和set_crud_url_path函数有关吗?

I have tested Grocerycrud on my local server and it all worked perfect! 我已经在本地服务器上测试了Grocerycrud,并且一切正常! so I don't get why is not working on my hosting server. 所以我不明白为什么不能在我的托管服务器上工作。

Here's an image caption of my COSTUMERS TABLE and the URL parameters being passed after I clicked edit, but no form is showed. 这是我的COSTUMERS TABLE的图片标题,以及单击“ edit”后传递的URL参数,但未显示任何表单。

Caption of "Edit" operation not working “编辑”操作的标题不起作用

Versions: 版本:

  • PHP 5.3.29 PHP 5.3.29
  • Codeigniter 2.1.4 Codeigniter 2.1.4
  • Web server running: Apache/2.4.16 (Unix) mod_hive/5.0 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 运行的Web服务器:Apache / 2.4.16(Unix)mod_hive / 5.0 OpenSSL / 1.0.1e-fips mod_bwlimited / 1.4
  • GroceryCRUD 1.5.4 GroceryCRUD 1.5.4

I really hope you can help me!!! 我真的希望你能帮助我!

I solved it! 我解决了!

As you can see in my image there's a .php file extension after the name of the file being called, that was affecting the operations since there should not be no file extensions. 如您在我的图像中看到的,在被调用的文件名后有一个.php文件扩展名,由于没有扩展名,因此会影响操作。

Just set the url_suffix empty: $config['url_suffix'] = ''; 只需将url_suffix设置为空:$ config ['url_suffix'] =''; in CI's application/config/ config.php and now all operations are executed properly. 在CI的application / config / config.php中 ,现在所有操作均已正确执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM