Log message #4183855

# At Username Text
# Apr 18th, 14:39 ricksaccous ;)
# Apr 18th, 14:39 ricksaccous @this.impetus https://api.cakephp.org/3.7/class-Cake.View.ViewBuilder.html
# Apr 18th, 14:39 this.impetus ```$this->viewBuilder()->getHelpers(['Thumber.Thumb']);``` seems to have pleased cake
# Apr 18th, 14:39 ricksaccous actually it's best to check the API
# Apr 18th, 14:38 this.impetus yeah, haha. thanks. don't be surprised if I come back
# Apr 18th, 14:38 this.impetus anyway, I should at least try to solve this myself
# Apr 18th, 14:38 ricksaccous you can go through the docs to figure it out
# Apr 18th, 14:38 ricksaccous then figure out what the better method to use is
# Apr 18th, 14:38 this.impetus but I keep getting errors stating that `loadHelper` isn't a method
# Apr 18th, 14:38 ricksaccous hehe
# Apr 18th, 14:37 this.impetus oh? As in now that we know it's there and installed, use the current cake API to actually load it? yeah `->helpers` is deprecated
# Apr 18th, 14:37 ricksaccous is helpers deprecated?
# Apr 18th, 14:37 this.impetus nah I can prolly google that
# Apr 18th, 14:37 ricksaccous don't use the deprecated method would be my advice
# Apr 18th, 14:37 this.impetus And this works. Final question—how do I suppress the deprecation errors?
# Apr 18th, 14:36 this.impetus Ahhhhh
# Apr 18th, 14:36 ricksaccous the second part is the actual name of the helper
# Apr 18th, 14:36 ricksaccous the first part of the string is the plugin namespace
# Apr 18th, 14:36 ricksaccous Thumber.Thumb
# Apr 18th, 14:36 ricksaccous it would be
# Apr 18th, 14:36 ricksaccous so
# Apr 18th, 14:36 ricksaccous I don't think you include the Helper part
# Apr 18th, 14:36 ricksaccous hehehehe
# Apr 18th, 14:36 this.impetus Thumb.Helper or something?
# Apr 18th, 14:35 ricksaccous this is a common theme throughout CakePHP
# Apr 18th, 14:35 ricksaccous when you load a helper from a plugin
# Apr 18th, 14:35 ricksaccous you need to prefix the plugin name
# Apr 18th, 14:35 this.impetus Or rather "Missing Helper" exception thrown
# Apr 18th, 14:35 this.impetus Hunh. Deprecation errors notwithstanding, that line with any of "Thumb", "Thumber", "ThumbHelper", "ThumberHelper" all say the helper is not found.
# Apr 18th, 14:33 ricksaccous $this->viewBuilder()->helpers(['MyHelper']);
# Apr 18th, 14:32 this.impetus `Call to undefined method Cake\View\ViewBuilder::loadHelper()`
# Apr 18th, 14:32 ricksaccous that might work too, lol
# Apr 18th, 14:32 ricksaccous is that a thing?
# Apr 18th, 14:32 ricksaccous can you still set that public helpers array in the controller?
# Apr 18th, 14:32 ricksaccous viewBuilder()
# Apr 18th, 14:31 ricksaccous $this->vieBuilder()->loadHelper or whatever it is
# Apr 18th, 14:31 ricksaccous you could do controller to load the helper but you have to do
# Apr 18th, 14:31 ricksaccous no you would just do that to make sure composer is loading it
# Apr 18th, 14:31 this.impetus Ahh. in the controller works.
# Apr 18th, 14:31 this.impetus In the model's controller, or AppView?
# Apr 18th, 14:30 ricksaccous \Thumber\View\Helper\ThumbHelper