Overview

Frosty is a framework for PHP and Smarty that aims to enable web developers to create template and database-driven websites in the most efficient manner possible. Frosty does three things:

  1. Provides a customizable controller that maps a URL to a template and, optionally, one or more SQL queries. The controller runs the template, so that you don't have to write PHP scripts to call the template.

    Example:
    http://www.yoursite.com/html/pages/my_page_title/
    - opens the Smarty template-
    pages.page_table.tpl
    - and assigns the results of the SQL query -
    SELECT * FROM page_table WHERE title LIKE 'my_page_title'
    - to the Smarty variable $frosty -
  2. Provides relational (i.e. foreign key support) database access within Smarty.
    Example:
    {$frosty[0].title},
    {$frosty[0].foreign_key[0].other_table_field}
  3. Extends Smarty with useful custom functions and plugins, supporting:
    - Recursion
    - Form validation
    - URL creation

Download

Note: Dependencies are included to save setup time. In the future, I'll include a no dependencies package

Dependencies:

Documentation

Contact

Lead Developer: Kyle Maxwell

My email address is kyle at efactormedia dot com. Note that this has changed!