SyntaxFix
Write A Post
Hire A Developer
Questions
I wouldn't use function from one controller into another. A better approach would be to move the common function to a service and then inject the service in both controllers.