Top "Controller" questions

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

How to initialize JavaFX controllers with the same model object?

Scenario I am creating a GUI where multiple views reference the same model object. What I am Accustom to In …

java dependency-injection controller javafx fxml
Rails: access controller instance variable in CoffeeScript or JavaScript asset file

In Rails 3.1 it is not possible to access controller instance variables in an asset js.erb or coffee.erb file …

ruby-on-rails controller coffeescript erb instance-variables
JavaFX TabPane - One controller for each tab

I'm new to Fx. I have a TabPanel with 10 Tabs. Each Tab has many controls (charts, buttons, etc.), and what …

controller javafx tabpanel
Exclude a controller from before_action

I am using the before_action filter to call authenticate which is a method that will redirect users back to …

ruby-on-rails ruby-on-rails-4 controller
Why is User (as in User.Identity.Name) null in my abstract base controller?

I was asking a related question but messed the title up and no-one would understand it. Since I am able …

c# asp.net-mvc controller user-controls httpcontext
How to return JSON from a CakePHP 2.2 controller?

I'm invoking a controller function: $.get("http://localhost/universityapp/courses/listnames", function(data){ alert("Data Loaded: " + data); }); And in my …

php json cakephp controller cakephp-2.2
AngularJS: controller vs service

I have read a couple of posts regarding proper usage of angularjs entities: services, factories, controllers and directives. My particular …

angularjs service controller
Codeigniter extending controller, controller not found

In Codeigniter 2.1.2 I want to create base controller and then extends from this controller. It does not work and I …

php codeigniter controller extends
Rails: Too Few Arguments

I am trying to get some Javascript working in my Rails app. I want to have my index page allow …

ruby-on-rails ruby-on-rails-3 controller ruby-on-rails-3.2
How do I generate a URL outside of a controller in ASP.NET MVC?

How do I generate a URL pointing to a controller action from a helper method outside of the controller?

c# asp.net-mvc asp.net-mvc-3 controller html-helper