Permalink
Browse files

add example configs

  • Loading branch information...
1 parent 0999cf1 commit 0ca1cab0c130529cafc1d10c5c2c3e4ab6bbaf30 @leedavis81 leedavis81 committed Jul 19, 2011
Showing with 80 additions and 0 deletions.
  1. +19 −0 example-configs/config.ini
  2. +61 −0 example-configs/example.ini
View
19 example-configs/config.ini
@@ -0,0 +1,19 @@
+; Global form factory config
+
+; Set the config type ini|xml|yml|php
+ff.config.filetype = ini
+
+; Set the path the models configuration folder
+ff.config.path = APPLICATION_PATH '/configs/form';
+
+; Set the required adapter current options are doctrine | doctrine2
+ff.adapter.type = doctrine2
+
+; set the namespace the entities are running under
+ff.namespace = Entities
+
+; set a caching mechanism for our element configurations
+;ff.cache.frontend.name = Core;
+;ff.cache.frontend.options.lifetime = 30;
+;ff.cache.frontend.options.automatic_serialization = true;
+;ff.cache.backend.name = Apc;
View
61 example-configs/example.ini
@@ -0,0 +1,61 @@
+; SINGLE - entry fields
+; config.{entityname}.elementType = {button|checkbox|file|hidden|password|text|textarea|image} (input type)
+; MULTI - Entry fields
+; config.{entityname}.elementType = {multiselect|multiCheckbox|select|radio}
+;
+;
+; --- Hardcode options via config ---
+; config.{entityname}.fieldValues = {value1, value2, value3}
+; config.{entityname}.fieldNames = {Value 1, Value 2, Value 3}
+
+; --- Link an entity ---
+; config.{entityname}.linkEntity.entityName = {Linking Entity Name}
+; config.{entityname}.linkEntity.entityField = {Entity field}
+; config.{entityname}.linkEntity.entityFieldValue = {Entity field value}
+; config.{entityname}.linkEntity.filters.{filter field} = {filter value}
+;
+; --- Link manual data ---
+; config.{entityname}.linkData.names = {name1, name2}
+; config.{entityname}.linkData.values = {value1, value2}
+;
+; --- Quick config options ---
+; config.{entityname}.value = {default value}
+; config.{entityname}.label = {label name}
+; config.{entityname}.required = true
+; config.{entityname}.disabled = {true}
+; config.disabled = {column1, column2, column3}
+
+
+
+;use "form" for form specific configurations
+
+;form.action = 'this/action'
+;form.method = 'post'
+;form.elements.username.type = 'text'
+;form.elements.username.options.label = "Username"
+
+;form.elements.email_address.type = 'select'
+;form.elements.email_address.options.label = "Email Addresses Custom"
+;form.elements.email_address.options.attribs.style = clear:both
+
+;form.elements.email_address.options.validators.strlen.validator = "StringLength"
+;form.elements.email_address.options.validators.strlen.options.min = 6
+;form.elements.email_address.options.validators.strlen.options.max = 20
+
+
+; use "config" for formfactory entity configurations
+
+;config.email_address.required = true;
+
+;config.column3.disabled = true;
+;config.disabled = column2, column4
+
+;config.role_id.elementType = select
+
+;config.role_id.linkEntity.entityName = Role
+;config.role_id.linkEntity.entityField = id
+;config.role_id.linkEntity.entityFieldValue = name
+;config.role_id.linkEntity.filters.status = 1
+
+;config.role_id.linkData.names = name1, name2
+;config.role_id.linkData.values = value1, value2

0 comments on commit 0ca1cab

Please sign in to comment.