I wanted the functionalities of view files to run in controller file also.
For example, I wanted $this->escapeHtml()
which runs in view file alone to run in controller through some means like $this->...->escapeHtml()
Is this possible? Kindly help.