Answer the question
In order to leave comments, you need to log in
Where to describe PHP traits? In a class file or in its own file?
I have a lot of traits and the class becomes difficult to read. I'm thinking of moving them to a separate file. But I write on the Kohana framework, and there is such a folder structure...
application
-cache
-classes
-config
-logs
-...
If you write in a separate file, do you need to create a directory for traits (I don't have one)? Traits are not classes.
Where are traits usually stored?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question