Controller provides a centralized entry point for handling requests. Usually is referred as a part of Model-View-Controller design pattern.
Questions tagged [controllers]
903 questions
0
votes
1 answer
Codeigniter: Multiple Methods, Multiple Tables, One Page
I'm a CI newb, And I'm converting a site I've developed procedurally, and I want to be as "correct" as possible... I have my default controller, which has one class, and within it a method per page, each which loads different content views…

matticus_1120
- 51
- 1
- 1
- 5
0
votes
1 answer
rails devise using current_user and matching routes :id
I am having issues with devise current_user confusing my model's :id as the users :id.
routes:
match "/causes/:id/:slug" => "causes#show", :as => :cause, :via => 'get'
match "/causes/:id/:slug/edit" => "causes#edit", :as => :edit_cause, :via =>…

kaigth
- 158
- 2
- 8
0
votes
3 answers
Rails 3, get a list of all controller names from a model?
My goal is to create quick urls for this one controller's views. Sort of like how some sites have domain/* mapping to viewing a user's profile. Beyond simply putting this rule in the routes rb at the end of the file, I would also like to prevent…

Parris
- 17,833
- 17
- 90
- 133
0
votes
1 answer
Can you call a method from a Controller if the View was created from a different Controller?
Say I called Index() from the HomeController which returns the view Index.aspx, can jquery ajax in javascript on Index.aspx call a method in another controller (ExternalController)?
$.ajax({
type: "POST",
url: "/Home/sayHi",
…

Matt
- 5,249
- 12
- 40
- 45
0
votes
2 answers
Zend Framework Controller to Module routing
So i have been doing my best trying to absorb as much as i can about the Zend Framework which is pretty new to me, i'm about two weeks in since my first attempts and being doing well so far.
However i have run into a small issue i just can't figure…

Björn
- 203
- 6
- 19
0
votes
1 answer
Rails unique routing names
i am busy working on a project that is involving many sub-domains and man different levels of authentication, i would like to change what the URL looks like depending on your lvl of access, we have superuser which has access to all(programmers…

legendary_rob
- 12,792
- 11
- 56
- 102
-1
votes
1 answer
Called controller can't access anything
in codeigniter I have my main controller:
load->library('../controllers/forum');
$obj =…

zlekonis
- 31
- 6
-1
votes
1 answer
Passing data from one controller to another in javafx. java.lang.IllegalArgumentException
I am creating a reporting application in which I have 3 scenes with 3 controller classes. My aim is to click on a button (Send Email) from my MaintainanceBacklog_Controller Class, which uses 3 ObservableList from the same controller class and 1…

Saurav Jajodia
- 3
- 1
-1
votes
1 answer
Im getting an error Undefined variable (post).Iam using Laravel framework
I am using this function to pass data from the database as a variable.
This is app.blade.php
…

ricardo Chitagu
- 93
- 1
- 5
-1
votes
1 answer
Having problems to run a umbraco site
I get this error, when I'm trying to run the site.
The controller type UmbracoBootstrapProject.Controllers.SiteLayoutControllers does not follow conventions, MVC Controller class names must be suffixed with the term 'Controller'
namespace…

Guilliam
- 1
- 1
-1
votes
1 answer
Symfony2 - Using multiple views with different controllers at the same time
So i'm new to Symfony and i've been struggling to understand something very basic.
Lets say I have 2 twig templates:
1. A list of blog posts
2. A list of top users
Now for the homepage I want to display those two views, But those two views are…

O K
- 1
- 1
-1
votes
1 answer
Java FX - Associate a second fxml file to a second controller file
I try to developp an application and I work on Eclipse.
First I worked on four files :
Main.java, that launch the interface by using the sheet1.fxml file
MyController.java, that declares the button and the anchor of the fxml file sheet1. That…

Julien
- 699
- 3
- 14
- 30
-1
votes
1 answer
How to send java object from jsp to Spring MVC 3 Controller
Hello All I am new to Spring environment.
I am doing this in jsp page.
-1
votes
1 answer
Hyperlinks MVC - How action method know in which controller is she located when it's called
I'm little bit confused here, I will post images as easier explanation:
(In image below is my Controller which has 2 action methods Index and Details, Index is used to show all employees and Details is used to show details about selected…

Roxy'Pro
- 4,216
- 9
- 40
- 102
-1
votes
2 answers
hide content in specific controller in angular js
In my website i have navigation bar in index page ( index controller).When i click the login button the state and controller will change to login controller. And i want to hide the navigation bar in login controller.
I don't want to hide navigation…

Jeeva Arulanandam
- 141
- 6