Skip to content

Loading namespace helpers doesn't work as expected CI4 alpha5 #1726

Description

@d4mn

name: Bug report
about: Help us improve the framework by reporting bugs!


Describe the bug
Loading helpers from a namespace doesnt work because to the path always is prepended 'Helpers/'
$paths = $loader->search('Helpers/' . $filename);

CodeIgniter 4 version
Codeigniter 4 alpha 5

Affected module(s)
Common.php function function helper($filenames)

Expected behavior, and steps to reproduce if appropriate
If i understand and its tricky if namespaced helper then 'Helpers/' should be prepended before helper name ex. i want to load helper('\Modules\Blog\blog') blog_helper.php then the path should be /Modules/Blog/Helpers/blog_helper.php but the search path is: Helpers/\Modules\Blog\blog_helper.php

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions