Hello everyone,
I am practicing with ColdBox and I would like to know if there is a way to define more than one folder to store the handlers?
Hello everyone,
I am practicing with ColdBox and I would like to know if there is a way to define more than one folder to store the handlers?
Yes, there is.
The first way is to nest folders inside the handlers
folder. You can specify it in your router by using the full path to the handler CFC as a dot-delimited path.
get( "/foo/bar", "Foo.Bar.Baz" ); // handlers/Foo/Bar/Baz.cfc
You can also include an external location which is a folder outside the /handlers
folder.