I have a controller which have a function test(). I want to make this function inaccessible when access by the URL and I can't make private or protected because I want the same function to used by other controllers.
How can I achieve this, any suggestions?