SproutCMS

This is the code documentation for the SproutCMS project

function input()

Generates an HTML INPUT tag using Fb::tag, with auto-determined value

Usage

string Fb::input ( string $type , string $name , array $attrs );

Arguments

  1. string $type
    The type of input, e.g. 'text', 'hidden', ...
  2. string $name
    The name of the input
  3. array $attrs
    Attributes for the tag

Exceptions thrown

  • InvalidArgumentException
    if $name is empty

Return value

  • string
    INPUT element