Let's say you have the following fields in the users table:
ID
,NOME
,USUARIO
,LOGIN
andSENHA
For me to insert a record into the table I do the following
$usuario = new Usuario();
$usuario->nome = 'Carlos Bruno';
$usuario->login = 'cbcarlos';
$usuario->senha = '123456';
$usuario->save();
There is a shorter code for me to do this insert, because if it were too many fields?
Example :
$usuario = new Usuario( AllInput() )
$usuario->save()
Type if I wanted to get from an array
Array(
'Carlos Bruno',
'cbcarlos',
'123456'
);
And insert in the base, would like?