Two field label in option
Two field label in option
sephi2510
Posts: 3Questions: 1Answers: 0
Hello Everone !
I need to put two name in label (in bold here) (on line " **** ->label( 'TYPE'+'NUMERO' )****"
/*
* Example PHP implementation used for the joinLinkTable.html example
*/
$db->sql( 'set names utf8' );
Editor::inst( $db, 'dossier' )->pkey('dossier.ID_DOSSIER')
->field(
Field::inst( 'dossier.D_NOM' ),
Field::inst( 'dossier.ID_CREATOR' ),
Field::inst( 'dossier.E_ID' )
->options( Options::inst()
->table( 'equipements' )
->value( 'E_ID' )
**** ->label( 'TYPE'+'NUMERO' )****
)
->validator( Validate::dbValues() ),
Field::inst( 'equipements.TYPE' )
)
->leftJoin( 'equipements', 'equipements.E_ID', '=', 'dossier.E_ID' )
->process($_POST)
->json();
I dont know how to make two fields.. Thanks a lot !
This discussion has been closed.
Replies
The
Options->label
method will accept an array of string to get multiple fields. So in this case you can use:Allan