SproutCMS

This is the code documentation for the SproutCMS project

file /sprout/Helpers/JsonForm.php

Namespace: Sprout\Helpers

View source


Classes

JsonForm

Processes forms using configuration stored in a JSON file which specifies database columns, their HTML input fields,
and validation rules.
A generic implementation which should work for most cases is found in ManagedAdminController::_getEditForm
(generates the form) and Controller::saveJsonData (saves the POST submission)