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.
    •  
      CommentAuthorbigtalk
    • CommentTimeJun 26th 2008 edited
     

    Hello,

    I've scaffolded and Akelos nicely creates forms for my MySQL tables.
    I want to change the size of the text field that is created for something like "Comments".
    the _form.tpl file that is displaying the form shows:

    <p>  
      <label for="news_comments">_{Comments}</label><br />  
      <?php  echo $active_record_helper->input('news', 'comments')?>  
    </p>  
    

    Where is the active_record_helper? How do I customize this?

    Thank you for any help!

    Hooray!!! - BigTalk

    •  
      CommentAuthorbermi
    • CommentTimeJun 27th 2008
     

    The Akelos ActiveRecordHelper is located at /lib/AkActionView/helpers/active_record_helper.php

    You can create a MyActiveRecordHelper at /app/helpers/my_active_record_helper.php and extend ActiveRecordHelper.

    BTW, if you use Sintags like

      <%= input 'news', 'comments' %>  
    

    and you have an input() method in one of your helpers it will use your app/helper instead of the core one.

    •  
      CommentAuthorbigtalk
    • CommentTimeJul 3rd 2008
     

    Thank you for your help Bermi!
    I'm learning a lot and my app is coming along.

    Cheers!

Add your comments
    Username Password
  • Format comments as