I need to restrict a controller in CI 2 to only run from command line. The other controllers in the application are accessible from the web.
What's the best way to do it?
I need to restrict a controller in CI 2 to only run from command line. The other controllers in the application are accessible from the web.
What's the best way to do it?
You might want to check if is a CLI request: