Top "Controller" questions

A controller is responsible for executing a sequence of instructions in response to some stimulus (maybe a command, action, or event).

Binding a Grails date from params in a controller

Why is it so hard to extract the date from the view via the params in a grails controller? I …

data-binding date grails groovy controller
ASP.NET MVC download image rather than display in browser

Rather than displaying a PNG in the browser window, I'd like the action result to trigger the file download dialogue …

c# asp.net-mvc image download controller
Angular : ng-init does not run on load

I have seen a few exmaples on stack overflow about this ng-init issue, although I cant seem to find one …

angularjs controller angularjs-ng-init
What does "The type T must be a reference type in order to use it as parameter" mean?

I'm trying to create a generic controller on my C#/MVC/Entity Framework application. public class GenericRecordController<T> : …

c# generics controller
how to generate a link to a module controller in prestashop?

What's the exact way to generate a link to a module controller in prestashop? Also, how should really be named …

hyperlink module controller prestashop
JavaFx Nested Controllers (FXML <include>)

In this tutotial, is an example of how to include custom components and use their controllers from the controller of …

controller include nested javafx fxml
Required_if laravel with multiple value

I have a dropdown menu like this: <select name="selection"> <option value="1">Option 1</option> &…

php validation laravel laravel-4 controller
How to make a REST API first web application in Laravel

I want to make an API first application in Laravel. I don't know what is the best approach to do …

php api rest laravel controller
Angularjs: a Service that serves multiple $resource urls / data sources?

I have an Angular service/provider that serves json data to my controller which works great: angular.module('myApp.services', […

angularjs controller
My helper methods in controller

My app should render html, to answer when a user clicks ajax-link. My controller: def create_user @user = User.new(…

ruby-on-rails controller helper