• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confusion in documentation

I go thru the documentation of CI4, and am confused in section:

General Topics > Helper Functions > Loading from Non-standard Locations

There the namespace of the Blog module is 'Example\Blog', but later referred as 'Modules\Blog' when calling helper function, like so:

PHP Code:

I finally figured out that the "correct" way to call the helper is helper('Example\Blog\blog'); OR register the namespace in the autoload config files as: 'Example\\Blog' => ROOTPATH . 'Modules/Blog',

It would be a problem to CI4 and PSR-4 PHP namespace newbie. If I am getting it right, we should correct it?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.