1
Say you have the following fields in the users table:
ID
,NOME
,USUARIO
,LOGIN
andSENHA
For me to enter a record in the table I do the following
$usuario = new Usuario();
$usuario->nome = 'Carlos Bruno';
$usuario->login = 'cbcarlos';
$usuario->senha = '123456';
$usuario->save();
There is a smaller code for me to do this insert, because if it were many fields?
Example:
$usuario = new Usuario( AllInput() )
$usuario->save()
Like if I wanted to pick from an array
Array(
'Carlos Bruno',
'cbcarlos',
'123456'
);
And insert in the base, would have as?