controller of _remap seem to fail. |
I build a controller: care.php in App\Controllers\wheels,
for simple testing _remap, the code is as follows. Assuming the URL is 127.0.0.1/myproject/wheels/care/a1, it will get a1 string. But,assuming the URL is 127.0.0.1/myproject/wheels/care/bb123, the result will appear "Method App\Controllers\wheels\Care::bb123() does not exis", it is not as directed to the contentProcess function as I expected, Please give me help. PHP Code: namespace App\Controllers\wheels;
What does the relevant route for that look like?
I found this error just when I started development mode.
It maybe have bugs, maybe it?
Suggestions:
1) Your controller class and source file need to be UCfirst, i.e. 2) the error message says that CI cannot find a bb123() method inside the Care class 3) Is your document root correct? It should be the public folder inside your project. I interpret an URL like yours as looking for App/Controllers/myproject/wheel/Care, which may not be what you intend
Sorry - as a general practice I won't download random files from the internet. If you'd like to submit a PR for the fix, that would be great.
Here are some docs to help out. I believe there's a link in there to find more information.
|
Welcome Guest, Not a member yet? Register Sign In |