I have a CakePHP app which needs to take data from Drupal (6). Specifically, there is one custom content type and one webform that need to be shared with CakePHP - so when a new node for that content type is added, or a webform submitted, Cake knows about it. I'm not sure the best way to do this, I've come up with two approaches:
Does anyone have advice about which of these two would be better, or if there's another option? I'm leaning towards the second idea.
Help greatly appreciated, thanks
I would create a web services API in Drupal, and periodically run a batch job in Cake which hits the API for new data. Try this module: http://drupal.org/project/services
Or, if you need super-concurrent updates, create an API in Cake to receive data, and a module in Drupal which will send data on submission.
This way you don't need to worry about database-level sharing between the two.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With