Developing in FastFrame

The Basics

  1. Check out the most recent version of the code from our subversion server. If you don’t know what subversion/SVN is, you’ll want to start here.
  2. Read the coding standards which contain both good tips for coding in FastFrame and the details of our coding style.
  3. Start coding!

Debugging and Error Handling

One of the most useful development features in FastFrame is the error handling which allows you to easily capture errors and debug variables. No more var_dump($foo)! To use the error handler effectively do the following:

  1. In FastFrame’s conf.php search for Error Handling and put the following line error reporters array:
    'console'   => array('level' => E_VERY_ALL),
  2. The above line means that all errors and debugging statements will result in a small bomb icon at the bottom of the screen. Click on the bomb icon to see the error message, the context of the error, and a dump of the pertinent variables surrounding the error.
  3. To debug a variable put the following line below the variable you want to debug:
    $GLOBALS['o_error']->debug($variable, 'variable_name', __LINE__, __FILE__);

    Note: If you are using VIM to do your developing you can put the following in your .vimrc to make it easy to debug variables:

    let mapleader = ","
    nmmap    <leader>bug      yiwo$GLOBALS['o_error']->debug(<esc>pa, '<esc>pbxA', __LINE__, __FILE__);<esc>

    Now, all you have to do is put your cursor over the variable to be debugged and type ,bug

API Documentation

The purpose and arguments of every method are documented. To start understanding the underlying code the API Documentation is a good place to start.

The Path of Action

A description of what happens during a normal page load. FIXME

 
development.txt · Last modified: 2005/08/18 14:25 by jrust
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki