Today I want to provide a tutorial on how to do some basic interaction with a database in Lithium, and I am going to rely on MySQL as a database for the purposes of this tutorial, although you have other options like MongoDB, as an example.
His example script uses the idea of "blog posts" stored in a MySQL table and code snippets are included showing how to:
- Create the model class based off of the core Lithium one
- Select all of the records from the table
- Filter down the returned values with "magic finder" methods (like "findAllByStatus")
You can find out more about the framework in the project's documentation section of their site.