custom casting: Entities directory vs Entity directory |
While trying out custom casting I got confused by inconsistent directory naming. Should the entity class files be really located in App/Entities/ but the cast handler class file in App/Entity/Cast/ ? Why not App/Entities/Cast/ ?
It is documentation bug.
You can use App/Entities/Cast/.
This is not a documentation bug.
CodeIgniter 4 does not have hard bindings for custom classes (apart from config files). You can place application classes wherever you want. This is what the documentation says. The main thing is that the framework/composer autoloader is able to load these classes. |
Welcome Guest, Not a member yet? Register Sign In |