I tried to solve this using the following approach
#my widget code will be here
This is working fine in local machine running on thin server.
But not working in production which is running on nginx server
Any one faced this type of problem before ?? Please help me with this problem.