Sorry if asked before. Is it possible to set the Field definitions dynamically from an array?
Sorry if asked before. Is it possible to set the Field definitions dynamically from an array?
cemlimited
Posts: 36Questions: 9Answers: 0
$fields = array("test2","test2");
Editor::inst( $db, 'register' )
foreach($fields as $field){
->field(Field::inst( $field ))
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Sure:
See our little bit of documentation on chaining here if you aren't familiar with using that technique.
Allan
Thanks Allan.
Instantiation not that easy....but figured the syntax out now...Thanks for the help