HomePHP Page 5 - Scratching the Surface: Getting Started with PHP Fusebox
Fusebox Naming Conventions - PHP
Originally designed for ColdFusion, Fusebox is a methodology for designing web-applications with extensibility and ease of maintenance that is now available for PHP.
You're trying to make a website, so you'll obviously need content. The files that make up your Fusebox application are broken down into a few different categories:
fbx_xxx.php
The Fusebox "core" files, or files that act together to provide the Fusebox functionality.
dsp_xxx.php
Display fuses, prefixed with "dsp", are used to show information to the user.
qry_xxx.php
Query fuses, prefixed with "qry", contain all your database queries.
act_xxx.php
Action fuses, prefixed with "act", typically perform some kind of action, such as emailing someone with the mail() function.
url_xxx.php
Location fuses, prefixed with url, redirect the application to a new URL.
Keeping the responsibilities of each type of file in mind, it should become apparent how to properly fashion your FuseDocs. A good rule of thumb is to make sure a developer who knows nothing about the overall application can code each fuse based entirely on the fusedoc.