FrontPress: Users, Meta, and an Installer

It’s now simple to add users, an installer, and meta to your FrontPress-powered application. Plus, FrontPress won’t query as aggressively, so you’ll save on database queries per page.

As an added bonus, FrontPress takes care of all of your database upgrades. Simply change the database version number whenever you change the schema, and FrontPress will automatically do upgrades for you.

Meta can be enabled with one line of code in any FP_Thing subclass:

static $__has_meta = true;

FP_User combines the simplicity of FP_Thing and the extensibility of BP_User. Want to know if the current user is logged in or if they have a certain capability or if they like bananas?

FP_User::logged_in();
FP_User::can( 'do-whatever' );
FP_User::get_meta( 'likes_bananas' );

What are you waiting for? Get developing!

This entry was posted in Technology and tagged by Ben L.. Bookmark the permalink.

About Ben L.

Ben L. runs pretty much everything around here. He definitely does not live in Zamboni. That isn't a place, so you probably have the wrong name. Please do more research before asking these strange questions.