Hi Friends, today I am going to explain you one simple thing for which I have searched more than one hour. I wanted to make one controller and one function in it which don’t have view file for it.I have search for it so many times and finally I got it from one forum where they write that how can we disable or not include view for controller function.
If you want to disable or not render or want to write controller function without view file then below is the one line code by which you can disable view by writing it in function :
$this->autoRender = false;
Just write this line where you want to disable view.