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
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.
Thank you for your help Bermi!
I'm learning a lot and my app is coming along.
Cheers!
1 to 3 of 3