$this->alchemyapi = new AlchemyAPI();
$response = $this->alchemyapi->sentiment("text", "Text to anaylse", null);
I have the above code which made a request to AlchemyAPI and wait for the response ,in the action of my controller.My question is that what should I be using to create the progress box that showing spinning icon while the request is being processed.And the dialogbox disappear when the request is finished?.I am also wondering if that would be possible to do it on the server side(on the controller/action) instead of using Javascript/Jquery on the view.
Since how I design my code is I am passing $response variable to the view.
$this->set($response);
I am new to CakePHP and I have no idea where to start with that.Any help would be much appreciated.