News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Andrew Podner:
Lithium Getting Stuff From Your Database
January 14, 2013 @ 10:36:31

Andrew Podner has a new post for those wanting to find out more about the Lithium framework and using models to work with your database.

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.

0 comments voice your opinion now!
database orm model find tutorial mysql


blog comments powered by Disqus

Similar Posts

Michael Nitschinger's Blog: Getting Started with Couchbase and PHP

php|architect: Stored Procedure Programming for MySQL5 (Part 1)

php|architect: Stored Procedure Programming for MySQL5 (Part 2)

FedoraNews.org: How to install Fedora Core 4 Server with the latest AMP Support

Felix Geisendorfer's Blog: Validating the cleaned output of HtmlHelper::dateTimeOptionTag()


Community Events

Don't see your event here?
Let us know!


podcast php7 example framework language security community api release series laravel voicesoftheelephpant laravel5 opinion interview introduction version library unittest video

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework