Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorsuthern
    • CommentTimeDec 18th 2007
     

    If you create a table with a field called "Description" in it, it defaults to a large text input area.

    This is fine in most of the models, but in my 'parts_vendors' model, the description will always be short. Is there a way to call input('parts_vendors', 'description') so that the field is like the 'note' field? I've looked through acive_record_helper.php, but can't make sense of it.

    Thanks! -Suthern

    • CommentAuthorKaste
    • CommentTimeDec 18th 2007
     

    it's the form_helper:

    <?= $form_helper->text_area("person", "description", array("rows" => 10)) ?>
    
    <?= $form_helper->text_field("person", "description", array("size" => 20)) ?>
    
    • CommentAuthorsuthern
    • CommentTimeDec 18th 2007
     

    That did the trick! Thanks!

Add your comments
    Username Password
  • Format comments as