Top "Controllers" questions

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

Display a view from another controller in ASP.NET MVC

Is it possible to display a view from another controller? Say for example I have a CategoriesController and a Category/…

asp.net asp.net-mvc views controllers
How to pass model attributes from one Spring MVC controller to another controller?

I am redirecting from a controller to another controller. But I also need to pass model attributes to the second …

redirect spring-mvc controllers modelattribute
AngularJS: lazy loading controllers and content

In this simplified scenario, I have two files: index.htm, lazy.htm. index.htm: var myApp = angular.module('myApp', []); myApp.…

javascript jquery angularjs lazy-loading controllers
Angularjs, passing scope between routes

I have a situation with a form that stretches over several pages (might not be ideal, but that is how …

scope routes angularjs controllers
MVC ViewModel example

I've been doing tutorials and trying to learn best practice when it comes to MVC development. The design I'm using …

c# asp.net-mvc-5 controllers asp.net-mvc-viewmodel
accessing HttpContext.Request in a controller's constructor

I'm following this ASP.NET MVC tutorial from Microsoft: My code is slightly different, where I'm trying to access HttpContext.…

asp.net-mvc httpcontext controllers
Retrieve salesforce instance URL instead of visualforce instance

From a visualforce page, I need to retrieve our organization's salesforce instance's URL, and not the visual force URL. For …

salesforce apex-code controllers visualforce
How do I make global helper functions in laravel 5?

If I wanted to make a currentUser() function for some oauth stuff I am doing where I can use it …

php laravel-5 blade controllers helpers
How to include/inject functions which use $scope into a controller in angularjs?

I am trying to include a library of functions, held in a factory, into a controller. Similar to questions like …

javascript angularjs dependency-injection factory controllers
codeigniter MY_Controller not found

i’m using the Codeigniter.2.1.3 for a website, so i need to extend the CI_Controller so i can add …

php codeigniter controllers extending-classes