Problem when calling controller method |
Hello,
please check your base URL as well as .htacess rules. some server does not support .htacess rules.
(10-02-2018, 11:58 PM)Pertti Wrote: With AJAX trailing slash could cause problems sometimes, but don't think it's that this time. Putting die('xxx'); didn't work. I still get the same error message when I try to call the method (even directly from the browser address bar). This is my __construct method: PHP Code: function __construct() { This is the verifyAccess function: PHP Code: function verifyAccess($loginOnly = false) { What bothers me most is that the server answers 404, its not CI's 404 error page.
Welp, it still doesn't works. I'm still manually changing method names in order for them to work.
I've searched on Azure's settings to see if there was something related to cache, but couldn't find anything relevant. I guess that I'll either have to live with it or find another framework (which was already on the plans). Thanks for everyone's help. I'll keep trying to find a way to solve this in the meantime.
If die() in controller didn't work, it means it never reaches the controller method.
You can put it in as first line in __construct - that way you can see if it actually makes it to the controller, if you get output the issue is with something within __construct method. If that doesn't work, you can put die as first thing in index.php - if you don't get output then the issue must be web server configuration side, because your request is not reaching any parts of CI. |
Welcome Guest, Not a member yet? Register Sign In |