Skip to content
adamsch1 edited this page Apr 18, 2011 · 1 revision

This is a C based web framework heavily inspired from Codeigniter for PHP, which I really like. I started coding FF when I realized it had been a while since my last C project.

Controllers, as such, are merely .SO objects, exposing a couple of functions. Controllers get loaded from the controller subdirectory. The ff application is a fastcgi app so libfastcgi will need to be installed [apt-get install libfastcgi or similar]. I have not added the ability for .SO objects to reload if a newer version is placed.

Templates are regular text files with very basic macro expansion support. You can do a simple if statement and you can expand macros into literal values. I.E <% $name %> => Bob . If you update a template FF will reparse it.

There is a form processor as well. It's pretty simple to add additional rules, right now I have it validating emails, required, min/max ints and strings, and I think alpha-numberic.

The framework uses sglib.h [google it, it rocks]. I've encapsulated the red black tree provided by sglib into a generic library named 'array'. It's kinda similar [as much as is grammatically and semantically possible] to php arrays.

I'm not concerned about performance, so I don't sweat the extra malloc. It's in C and therefore insanely fast compared to pretty much any scripting implementation on the planet. Not a fair comparison as FF barely does anything useful :)

Experimentally FF can send an email, check mail.c. This requires libesmtp.

Clone this wiki locally