Cannot call functions of Controllers with "ajax" in the name of the Controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Cannot call functions of Controllers with "ajax" in the name of the Controller (/showthread.php?tid=18218) |
Cannot call functions of Controllers with "ajax" in the name of the Controller - El Forum - 04-29-2009 [eluser]Unknown[/eluser] When trying to use a Controller named "Ajax.php" i ran into the following strange thing: When i try to call a function in a Controller with "Ajax" in the Name, i get the following error message: Quote:Internal Server Error The URL i called: Code: http://[SERVERNAME]/index.php/fooajaxbar/fnord The Controller ( system/application/controllers/fooajaxbar.php ) : Code: <?php Constructor and index page work well. If i rename the class to Fooajbxbar (and the file to fooajbxbar.php), all works fine, and i can call the function fnord successfully. ( URL: Code: http://[SERVERNAME]/index.php/fooajbxbar/fnord Cannot call functions of Controllers with "ajax" in the name of the Controller - El Forum - 04-29-2009 [eluser]Mike Ryan[/eluser] Hi, Do you have any URL rewriting going on, e.g. mod_rewrite in apache? Cannot call functions of Controllers with "ajax" in the name of the Controller - El Forum - 05-01-2009 [eluser]Derek Allard[/eluser] There's nothing I can think of in CI that would produce this - if URL rewriting isn't the culprit, is your host doing anything funky? Cannot call functions of Controllers with "ajax" in the name of the Controller - El Forum - 05-06-2009 [eluser]Unknown[/eluser] Thanks for the answers, i should have checked this issue on another server before posting here... Well, i tried the same script on another server now, and it runs without error. So, it really seems it was a server issue, nothing inside CI. Sorry for bothering. Cannot call functions of Controllers with "ajax" in the name of the Controller - El Forum - 05-06-2009 [eluser]Derek Allard[/eluser] Its no bother at all Korgull, these things come up and its good to have a community to bounce ideas off of. Welcome to CodeIgniter, hope to see you around lots! |