Log message #4183850

# At Username Text
# Apr 18th 2019, 14:38 this.impetus anyway, I should at least try to solve this myself
# Apr 18th 2019, 14:38 ricksaccous you can go through the docs to figure it out
# Apr 18th 2019, 14:38 ricksaccous then figure out what the better method to use is
# Apr 18th 2019, 14:38 this.impetus but I keep getting errors stating that `loadHelper` isn't a method
# Apr 18th 2019, 14:38 ricksaccous hehe
# Apr 18th 2019, 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 2019, 14:37 ricksaccous is helpers deprecated?
# Apr 18th 2019, 14:37 this.impetus nah I can prolly google that
# Apr 18th 2019, 14:37 ricksaccous don't use the deprecated method would be my advice
# Apr 18th 2019, 14:37 this.impetus And this works. Final question—how do I suppress the deprecation errors?
# Apr 18th 2019, 14:36 this.impetus Ahhhhh
# Apr 18th 2019, 14:36 ricksaccous the second part is the actual name of the helper
# Apr 18th 2019, 14:36 ricksaccous the first part of the string is the plugin namespace
# Apr 18th 2019, 14:36 ricksaccous Thumber.Thumb
# Apr 18th 2019, 14:36 ricksaccous it would be
# Apr 18th 2019, 14:36 ricksaccous so
# Apr 18th 2019, 14:36 ricksaccous I don't think you include the Helper part
# Apr 18th 2019, 14:36 ricksaccous hehehehe
# Apr 18th 2019, 14:36 this.impetus Thumb.Helper or something?
# Apr 18th 2019, 14:35 ricksaccous this is a common theme throughout CakePHP
# Apr 18th 2019, 14:35 ricksaccous when you load a helper from a plugin
# Apr 18th 2019, 14:35 ricksaccous you need to prefix the plugin name
# Apr 18th 2019, 14:35 this.impetus Or rather "Missing Helper" exception thrown
# Apr 18th 2019, 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 2019, 14:33 ricksaccous $this->viewBuilder()->helpers(['MyHelper']);
# Apr 18th 2019, 14:32 this.impetus `Call to undefined method Cake\View\ViewBuilder::loadHelper()`
# Apr 18th 2019, 14:32 ricksaccous that might work too, lol
# Apr 18th 2019, 14:32 ricksaccous is that a thing?
# Apr 18th 2019, 14:32 ricksaccous can you still set that public helpers array in the controller?
# Apr 18th 2019, 14:32 ricksaccous viewBuilder()
# Apr 18th 2019, 14:31 ricksaccous $this->vieBuilder()->loadHelper or whatever it is
# Apr 18th 2019, 14:31 ricksaccous you could do controller to load the helper but you have to do
# Apr 18th 2019, 14:31 ricksaccous no you would just do that to make sure composer is loading it
# Apr 18th 2019, 14:31 this.impetus Ahh. in the controller works.
# Apr 18th 2019, 14:31 this.impetus In the model's controller, or AppView?
# Apr 18th 2019, 14:30 ricksaccous \Thumber\View\Helper\ThumbHelper
# Apr 18th 2019, 14:29 this.impetus https://github.com/mirko-pagliai/cakephp-thumber
# Apr 18th 2019, 14:29 ricksaccous link me the plugin again
# Apr 18th 2019, 14:29 this.impetus awesome.
# Apr 18th 2019, 14:29 ricksaccous no
# Apr 18th 2019, 14:29 this.impetus @ricksaccous which I assume is some version of `Cake\Use\<something>`?