Hello
I want to create a custom exception class for catching exceptions
inside a specific controller.
Where should I put the custom exception class definition ?
Inside the MyController.php file ?
Is it safe ?
Hello
I want to create a custom exception class for catching exceptions
inside a specific controller.
Where should I put the custom exception class definition ?
Inside the MyController.php file ?
Is it safe ?
If you plane to reuse it, a dedicated file in your [font=“Courier New”]components[/font] path were the right place. If not, your controller’s file is sufficient.