Top "Controller" questions

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

Angular $routeParams: get query parameter as array

When I have multiple id parameters in query, $routeParams.id gives me an array. That's great. But, if only one …

javascript angularjs controller angular-routing query-parameters
MVC3 Add Controller Scaffolding Error - Unsupported Context Type

I'm creating a new MVC 3 application. Steps taken: 1. Added new model by right clicking on Models and adding "LINQ to …

asp.net-mvc-3 linq-to-sql controller scaffolding
Mininet Cannot find required executable controller

Whenever I want to run sshd.py example in mininet or some custome code I have written myself I get *** …

python controller mininet
Spring 3 MVC @Controller with AOP interceptors?

Anyone knows why apparently it is not possible to use AOP with annotated MVC Controllers? (see Post). I have a @…

java spring spring-mvc controller spring-aop
Symfony2 - how to clear / edit a flash message

I am setting a flash message in my controller when rendering a twig template. If there is a post action, …

php symfony controller twig flash-message
How to change $model->attributes value in controller - Yii

UserMasterController Code: public function actionUpdate($id){ $model=$this->loadModel($id); if(isset($_POST['UserMaster'])){ $model->attributes=$_POST['UserMaster']; $…

controller yii yii-components
Accessing Database Entities from Controller

tl;dr In a good design. Should accessing the database be handled in a separate business logic layer (in an …

c# asp.net-mvc entity-framework controller separation-of-concerns
Using sanitize within a Rails controller

I'm trying to call sanitize within a controller. Here's what I tried: class FooController < ApplicationController include ActionView::Helpers::SanitizeHelper # ... …

ruby-on-rails controller helper sanitize
how access to helper "current_user" in model rails?

I need to call current_user (define in ApplicationControler like an helper), in my User model. I test ApplicationController.helpers.…

ruby-on-rails-4 model controller helper
WEBrick::HTTPStatus::LengthRequired error when accessing create method in controller

I have a very simple controller set up: class LibrariesController < ApplicationController ... def create @user.libraries << Library.new(…

ruby-on-rails controller