Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorgizmo
     

    Hello, does anybody knows how can i get multi-select options selected when editing a model with habtm objects associated? I'm using $form_options_helper->select() in my template, as mentioned in habtm section in the wiki (http://wiki.akelos.org/how-to-implement-many-to-many-relationships). Thanks in advance.

    • CommentAuthorgizmo
     

    Ok, sorry. form_options_helper.php, line 82:

    "(...) By default, $post.person_id is the selected option. Specify 'selected' => value to use a different selection or 'selected' => null to leave all options unselected (...)"

    RTFM, gizmo!! :-)