Out of frustration and went in and baked a brand new plugin. Then baked a new helper for that plugin. Tried to load that plugin in the same exact way in the AppView and it says it can’t find it.
If you do use CakeBootstrap\View\Helper; and then $x = new FormHelper(null); do you get an error about the class not existing, or something else? If it says the class can’t be found, then it sounds like maybe an autoloader issue.
Yea, I’ve wondered about the autoloading issue. I’ve even started looking at the ObjectRegistry since that’s what’s throwing the exception, but surely this is not a framework issue. I’m even having issue debugging that. Tomorrow I was going to do a fresh install and try again. If I get the same results, I’m not really sure what else to assume.
Ok, so I’m still getting some errors, but I think I can work through these. I’ve made progress at least.
So what happened?
I had no idea that the plugins needed to load via composer and put in the composer file. These are plugins that we’re managing in our own repository and I didn’t realize that composer was a requirement to mange them. I noticed in the plugin documentation that information is there. I hadn’t read that until now. We’ve been working with CakePHP2 for years and version 2 didn’t work that way, so I had no idea that version 4 would work that way. Anyway, now I know. Wanted to leave this information in case anyone else runs into the same problem.