Example #1
0
 public function testIncludePath()
 {
     Config::includePath('foo/bar');
     $cfg = Config::getConfiguration();
     $this->assertEquals(1, count($cfg[Config::PATHS]));
     Config::includePath('foo/bar2');
     $cfg = Config::getConfiguration();
     $this->assertEquals(2, count($cfg[Config::PATHS]));
 }
 */
/**
 * @page include_path_config Include Paths
 *
 * To declare a new include path, you will want to use code like this:
 *
 * @code
 * <?php
 * Config::includePath('path/to/some/classes');
 * ?>
 * @endcode
 *
 * By default, Fortissimo uses a flat namespace (no deeply nested directories) because Fortissimo 
 * itself is a thin framework.
 */
Config::includePath('core/Fortissimo/Theme');
// Include the Theme classes, which are optional.
// Uncomment this to support advanced CLI commands.
// Config::includePath('core/Fortissimo/CLI');
/**
 * @page datasource_config Datasources
 * Fortissimo provides a very thin database abstraction layer.
 *
 * To use it with MongoDB, simply customize the setup below. To use another
 * database, implement FortissimoDatasource, and then use the implementing
 * class in the invoke method here.
 *
 * @code
 * Config::datasource('db') // Name of datasource
 *   ->whichInvokes('FortissimoMongoDatasource') // The class it uses
 *   // Parameters for the FortissimoMongoDatasource: