Hi just need to know whether you can query开发者_Python百科 the database from inside a helper class, whether you should and how you do it.
I have made a helper class called Navigation that gets used on every page because it does stuff to my main navigation menu. So in order for this to work I have included the helper in my pages controll
I try to follow this tutorial, but I can\'t get it to work: http://weierophinney.net/matthew/archives/246-Using-Action-Helpers-To-Implement-Re-Usable-Widgets.html
I think in newer versions of Rails, there are ways 开发者_开发百科to say, \"share these methods between controllers and views\" using something like
There are some开发者_如何学Python Java libraries that do stuff you would otherwise have to put in every single class. For example, I had to put a clone() method in every single class until I discovere
Supposedly, ActionController::Base.helpers acts like a proxy for accessing helpers outside views. However many of the methods defined there rely on controller variables and I\'m unable to succesfully
i\'m trying to do myself a good simple request control library. this is my code: class CI_Request { public function isAjax()
I\'m hoping that someone can provide a simple, straight forward example of extending the Html.TextBoxFor helper. I would like to include a boolean ReadOnly parameter which will (surp开发者_如何学编程r
I\'m pretty new to MVC and just read an article about helpers. Now I have this code on the View: <div class=\"display-label\">Ingredients:
So I\'m wanting to implement the TinyMce helper. I\'ve followed instructions from the cakephp bakery but am still getting a error.