SproutCMS

This is the code documentation for the SproutCMS project

function feature()

Register an available feature, and the root namespace where the helpers are found

Features allow the Sprout core to access code provided by modules without needing
to hard-code the namespace of these modules

Usage

void Register::feature ( string $code , string $namespace );

Example

Register::feature('users', 'SproutModules\Karmabunny\Users');

Arguments

  1. string $code
    The feature code. Only one in use at this time, 'users'
  2. string $namespace
    The root namespace (without 'Helpers\' part) of the feature

Return value

  • void