Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorraiho
     
    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 ??
    •  
      CommentAuthorTalizmelf
     
    no, but by itself doesn't change the db, you have to call save() method.
    • CommentAuthorraiho
     
    ah ok... now it works!
    tnx u so much Taliz.

    That God taxi driver!!!
    ---------------------------