Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit
https://github.com/akelos/akelos/issues
Akelos PHP Framework Forum
Discussions
Categories
Akelos Programming
: not add with setAttributes()
Bottom of Page
1 to 3 of 3
CommentAuthor
raiho
why doesnt insert into db?
this is my code:
---------------------------------------------------------------------------------------------------
function import(){
if($this->Request->isPost() && !empty($this->params['importFile'])){
$rubrica = array(
'id_rubrica' => '',
'id_dominio' => '',
'id_utente' => $this->getSelectedUser('id'),
'nome_rubrica' => 'import-'.date('d.m.Y-H:m:s')
);
$this->Addressbook->setAttributes($rubrica);
}
}
---------------------------------------------------------------------------------------------------
setAttributes() does it work with $this->params[${some_form_var}] only ??
CommentAuthor
Talizmelf
no, but by itself doesn't change the db, you have to call save() method.
CommentAuthor
raiho
ah ok... now it works!
tnx u so much Taliz.
That God taxi driver!!!
---------------------------
1 to 3 of 3
Back to Discussions
Top of Page