0

In my extension I need to write a temporary .csv file but (it's my first extension) I'm not able to get the configured "Temporary Files Directory" value. How can I do it? Thanks

Marcello

2

You can get any settings values from the API and, you can see how, exploring the API through http://yoursite.site/civicrm/api URL.

To answer your question you can follow this screenshot:

enter image description here

2
  • It's not clear for me (I'm a beginner in extensions) how to get the PHP code from your image. – marcello Apr 21 '16 at 8:54
  • You can generate this PHP code going to the civicrm/api URL on your site. – Francesc Bassas i Bullich Apr 21 '16 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.