Welcome Guest, Not a member yet? Register   Sign In
custom casting: Entities directory vs Entity directory
#1

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/ ?
Reply
#2

It is documentation bug.
You can use App/Entities/Cast/.
Reply
#3

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.
Reply
#4

See https://codeigniter4.github.io/CodeIgnit...om-casting
Reply




Theme © iAndrew 2016 - Forum software by © MyBB