helper
Is It Okay to use helpers in views?
Simple question about best-practice. I\'m using Kohana... is it okay to use helpers in开发者_StackOverflow views? For example, to use URL::site(). I could pass it from controller, you know. I assume i[详细]
2023-03-09 20:30 分类:问答How to implements a button tag to form_for helper?
I need imp开发者_StackOverflow社区lements a helper that creates <button>...</button> tag, I need to do some similar to this:[详细]
2023-03-09 19:58 分类:问答About default routing helpers, is there some redundancy?
Assuming post = Post.first, I can write a link with link_to \"First Post\"开发者_如何学C, post# I guess Rails here understand to which model the[详细]
2023-03-09 07:27 分类:问答Problems with @font-face on internet explorer
I downloaded an EOT font from the internet and it worked fine in IE, FF, and Chrome.Then I downloaded a TTF font from dafont.com and I converted i开发者_JAVA百科t to EOT and it did not work in Interne[详细]
2023-03-09 07:15 分类:问答Rails 'raw' helper
Is it safe to use the \'raw\' helper in a Rails app that may have many users? I will be integrating TinyMCE with my app, for users to add HTML content to some form of post. Is it a security issue to[详细]
2023-03-09 05:07 分类:问答Download files with zend contextSwitch() Action Helper
everybody. I\'m stack with similar thing: i have to provide a download file capability with Zend Framework... Several hours of googling don\'t help me with this...[详细]
2023-03-08 21:05 分类:问答Zend Unset Action helper from controller action
Zend framework talk.I\'m initializing in my bootstrap class My_Action_Helper_Custom (extendin开发者_C百科g Zend_Controller_Action_Helper_Abstract) to make it available to all of my controllers.[详细]
2023-03-08 08:05 分类:问答Helper method does not update a Controllers instance variable
I define an instance_variable in my Pages Controller and initialize it with some string. I include that instance_variable in a page.[详细]
2023-03-08 05:28 分类:问答preg_replace problem
I have $_SERVER[\'DOCUMENT_ROOT\'] echoed, the problem is when it is echoed from xampp it shows, like this:[详细]
2023-03-08 05:02 分类:问答How to access URL helper from rails module
I have a module with a function. It resides in /lib/contact.rb: module Contact class << self def run(current_user)[详细]
2023-03-07 20:00 分类:问答