The controller in a Java EE
application may be represented by a
servlet, which may be currently
implemented using JavaServer Faces
(JSF).
But in PHP there is no such servlet,so I guess is it implemented by url rewrite?
So that every request is directed to that controller?
...
The setup: (using Asp.Net MVC 2 RC, Entity Framework, SQL Server, VS2008)
My buddy and I are working on a project that will have different domains pointing at it. We want to get the domain (website) out of the Request and use that to drive data. This website data needs to be part of all the controllers.
Ex. Data for domain1.website...
What's the standard for applying default values to Rails models from links? Here's the situation:
There is a model in Spree called ProductGroup, which is a collections of settings defining how to find a Product (based on a bunch of property values you set). I want to be able to use this structure for defining common ProductGroups:
E...
hello
I want to have 2 navigation menus- One will be a "Top Level" menu, with 4 choices, each pointing to the index of a separate controller.
I would like to have a "Controller-Level" sub-menu on the left of my screen. This will correspond to links relevant to the controller selected in the top menu.
The "controller-level" menu is n...
Hey all,
I keep getting the following error:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.size
Based on the current user, when they navigate to a page, I want to limit them to what they can see based on their site. Problem is there is no associat...
I'd like to be able to create a base controller in my Spring app that, among other things, determines if a user is a registered user or not. This base controller, following the template design pattern, would contain an abstract protected method that controller subclasses would implement.
The abstract method would have passed to it an ...
i want to update or re-draw the table in firstView,when i go back to first view from second view. i use navigation controller and popViewControllerAnimated is used to back to first view.
i dont know how to call draw table function when it is back to previous view.
thanks
...
I am trying to add authorization to my controllers and it's not working...
I am not sure where to look in my program, but adding the
[Authorize]
filter in my controller is not working, let alone anything like
[Authorize(Roles = "Manager")]
I have been able to get this working in the default application that is provided when crea...
I know that a UINavigationController has good view pushing methods. But let's say that I don't want to use a UINavigationController because I don't want the bar on the top of the screen. Is there a specific way to push and pop views as I want them?
Also, when should I use presentModalViewController and when shouldn't I?
Thanks,
Anthony...
I'm programming for the iPhone and I'm wondering when to use the addSubview method of a view and when to present to use the modal view controller (presentModalViewController). What complicates this even more is if you are using a navigation controller (I'm not) and you can use the pushViewController method?
When would you use each and w...
Hi there,
I've been using Rspec for a while and for some reason am receiving errors on a controller called ReferencesController.
The error says that I have to specify the controller name by either using:
describe MyController do
or
describe 'aoeuaoeu' do
controller_name :my
I've tried both variations:
describe ReferencesC...
i have a module controller which returns(renders) a view page (.aspx) into the main.aspx page
but now i want the controller to return the entire content of .aspx page to the javascript function from where this controller has been called
pls help
my calling function in main.aspx
$.get('/Module/Select/',
{ TemplateName: Te...
In one of my rails controller, I must respond to several types of formats, so I use the typical respond_to chain:
respond_to do |format|
format.html { ... }
format.mobile { ... }
format.jpg { ... }
format.xml { ... }
format.js { ... }
end
Usually that the { ... } part is repeated on several formats. What is the best wa...
My website(a single server) is using front controller pattern as the single entery point and I understand that only a single instance of this controller exist at any given point of time (Singleton pattern)
$frontController = Zend_Controller_Front::getInstance();
What surprises me is if I get concurrent requests/traffic(assume some big n...
Ok. So I am working on a website using CI. Here is the structure of my controller:
class MY_Controller extends Controller
class User extends MY_Controller
class User_Model
So, I load the User_Model inside the constructor of the User controller. I know that it is loaded properly because I tried to print something from User_Model and it ...
Hi,
can anyone please tell about showing message box from MVC controller?
The scenario is -
I want to show a message box with Yes/No buttons. On clicking Yes i want to show a confirmation message box.
I want to do this using MVC controller?
How can I do this?
Thanks in advance,
Kaps
...
I want to write a action method returning Javascript.
How to run javascript using MVC controller?
I tried the following, but it fails to work properly. It shows file download - security warning?
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult About(clsABC param)
{
string message = "Hello! World.";
System.Text.St...
Whats the usage of creation relations like
var $belongsTo = array(
'UserType' => array(
'className' => 'UserType',
'foreignKey' => 'user_type_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
//The Associations below have been created with al...
I'm coding in Objective-C for the iPhone. I was wondering when I use init: and when I use initWithNibName:bundle: when creating a view controller.
I can't really find an answer to this question.
Thanks.
...
Do you have anything more expressive on Asynchronous Controller in ASP.NET MVC?
Cheers
:)
...