I just have to do quite special functions on formatting stuff.
For usual I made some "Utils" like the FileUtil, which then contains static functions like "formatFilesize($_size)".
Where would you put these classes in project structure?
I just have to do quite special functions on formatting stuff.
For usual I made some "Utils" like the FileUtil, which then contains static functions like "formatFilesize($_size)".
Where would you put these classes in project structure?
You could put it under protected/components, or more specifically, under protected/helpers. If you do latter, you may want to import that directory in app config so you can use your helper class without explicitly including it.
Thank you!
BTW:
Should "SOLVED" threads be marked as such? (saw this in a few threads)
That’ll be good, but not required.