⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Can´t Read, Edit and Delete info



Tony N
  • profile picture
  • Member

Posted 18 March 2016 - 20:52 PM

Hi I've been testing Grocerycrud on my site, but there's a couple of issues I've been facing and I've been pulling my hair for hours.

 

I have my CI setup like this:

 

site_name

   application

           controllers

                       admin(inside all cms controllers including grocerycrud's example.php)

 

Is the same with models and views, I use always an admin folder to keep everything separated.I have the assets folder at the site's root (same level than CI's application folder).

 

Now in order to test Grocerycrud I routed the controller using CI's routes.php: $route['example'] = "admin/examples";

Then I entered the URL http://my_admin_site/some_route/admin/examples to access the Grocerycrud default examples, it all worked fine, but 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.

 

Is it something related to the set_crud_url_path function?

 

Here's an image caption of my COSTUMERS TABLE and the URL parameters being passed after I clicked edit, but no form is showed.

 

[attachment=1091:image.png]

 

I really hope you can help me!!!


Tony N
  • profile picture
  • Member

Posted 25 March 2016 - 08:00 AM

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.

 

Just set the url_suffix empty: $config['url_suffix'] = ''; in CI's application/config/config.php and now all operations are executed properly.