Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorsansuil
     
    When I create a checkbox input in a form in this way $form_helper->check_box("person", "single"), it is supposed that "person" is an object, but how can I access to that object?. What do I have to write in the controller to assign that object.

    Thanks.
    Saludos.
    • CommentAuthordpinte
     
    in your controller, you must either create the object from scratch or load it from the database. For example, if you have a Person model and ther person_id :

    $this->person = $this->Person->find($person_id);

    Then you will be able to use it in your view.