-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: url_to() does not take into account the default namespace #5042
Comments
The first argument of the function should be a class and function name,not a path. The example works for a class |
I am sorry. Didn't figure out that |
the bug still has not been fixed, you have to patch it yourself |
This seems a bug in the documentation.
|
You may be right. But look at the |
@szajens You have a point. The behaviors are not consistent. |
Cool, thanks. |
Describe the bug
The example from the docs
echo url_to('Home::index');
does not work. Instead it needs to beurl_to('App\Controllers\Home::index')
.However if I have a folder inside "Controllers" I still cannot get the path. For example,
url_to('App\Controllers\Admin\Categories::index')
throws errorController or its method is not found: App\Controllers\Admin\Categories::index
Am I missing something?
CodeIgniter v4.1.3
The text was updated successfully, but these errors were encountered: