Hi,
I’m a mainly back-end php developer that is just starting out with modx. I just have a couple questions that mainly deal with adding back-end php code to an existing website that uses modx evo 1.0.
Firstly, I just wanted to know what are the best practices right now for accessing (create/read/update/delete) mysql databases in modx evo 1.0. The tables are in the modx database.
Is using the DBAPI what everyone uses? I am a bit confused why a lot of the API functions are highlighted red on this page:
http://svn.modxcms.com/docs/display/Evo1/DBAPI
Is this to indicate deprecation of some sort? I don’t believe PDO is supported so I am guessing this is the main option?
The second question is pretty general and deals with OOP and may just be because I am not yet experienced with snippets. I wanted to encapsulate the db calls and other functions in a class and have functions be accessible as static functions. where is the best place to write the class definition? inside a snippet?
Sorry if there are any ambiguities. Thanks in advance for any replies.