Hi. I'm working in a new block for moodle, and I need to access the database from a php to create some text files. I follow the HOWTO.html and I created a simple block with a static text without problems. But there don't say anything about database access. I didn't found anything about it here in moodle.org or in forums yet. I wanna know how I can access the database, if have any lib that I can use or something like that.
Thx
Blocks
New block - How I access the database?
This discussion has been locked so you can no longer reply to it.