Hello

I would like to know the best way to call a method on another controller
whilst within an action, so that i can work with the response from the
"other" action. 

I am geocoding some addresses, so whenever a user enters an address into the
database (from AddressController::insert) i would like a call to be made to
GeocodeController::getLatLong which will query google's geocode api and
return the results as json to AddressController. The json response will
simply contain the latitude/longitude of the newly inserted address, which
will be updated with these values.

How is this best achieved? Will i need to set the address to the request
object in order for the GeocodeController to be able to obtain it? 
-- 
View this message in context: 
http://www.nabble.com/calling-controller-action-and-getting-json-response-from-seperate-controller-tp25982645p25982645.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to