mvc

Which other languages/IDEs are setup like iPhone/Xcode?

In know the question isn't exactly programming related but I think this forum is the best place to ask. So, with risk of the question being pulled, here goes... What other languages/IDEs are setup as well as the iPhone with Xcode and Interface Builder? Apple uses one design pattern and uses it extremely well - MVC. IB doesn't have any...

How to properly implement the Strategy pattern in a web MVC framework?

In my Django app, I have a model (lets call it Foo) with a field called "type". I'd like to use Foo.type to indicate what type the specific instance of Foo is (possible choices are "Number", "Date", "Single Line of Text", "Multiple Lines of Text", and a few others). There are two things I'd like the "type" field to end up affecting; the...

Ajax.BeginForm does not work in firefox

When I use Ajax.BeginForm with updateTargetId, it works fine in IE - replacing the html inside updateTargetId's tag. The same thing redirects the page to form's action. Does Ajax.BeginForm work in firefox? ...

Model shared between two objects

I have three classes interacting in an interesting way. One is a model class, and it has to be accessed by both of the other classes, so a single instance of it is kept as a member of each. Both of these classes interact with the model in different ways. There are a couple of instances where the model object has to be completely throw...

How would you use ASP.NET MVC to create pages in a CMS?

In a content management system you can usually create pages on the fly eg www.website.com.au/home.aspx www.website.com.au/projects.aspx www.website.com.au/contact-us.aspx In a previous CMS that we wrote we physically created these files on disk when the user selected to create a new page in his site. We copied the new file from a bas...

What's the most minimal Java web MVC framework?

I'm looking for a Java web framework that requires the most minimal amount of configuration for a very small app. Spring & Struts are definitely overkill here. This is an app that could be written without any framework at all but I would prefer to use a minimal MVC framework if I can find one. ...

What is the actual difference between MVC and MVC Model2

just i want to know What is the actual difference between MVC and MVC Model2 in the development ...

ASP.NET MVC – Database Driven Menu

I have a database menu structure which I would like to add to the site.master file. I’ve looked at other questions on StackOverflow but cannot get this to work on my website. How do I add a User Control to the Site.Master file? Menu.ascx <%foreach (MainMenuSort mainMenuSort in (List<MainMenuSort>)ViewData["MainMenuSortListDisplay"]) ...

Ability matrix grid with dynamic loading (WinForms)

Hello, I was requested by a customer to build a grid that represents an ability matrix for actions. For example, each row represents a protocol, and each column represents an action that can be done on it. The grid should not be hard-coded - it should load the relevant actions for the protocols. Meaning, there could be a different amount...

ASP.NET MVC How to specify additional parameters in POST method?

Hi, in my MVC application I have a controller (ProjectController) which has an action (create). The create function accepts a projectEntity (custom 3d party datalayer component) as a parameter. The framework automatically binds the entered form values to the projectEntity object. This is the create-function signature: <AcceptVerbs(Htt...

Why does MVC look for .aspx and .ascx for both full and partial views?

I've just been bitten by a problem where I have a view (FindUser.aspx) trying to render a partial view (FindUser.ascx). The default search paths for views look for a file named after the view in a variety of folders. Rather surprisingly, for views, it looks for a file with the extensions of .aspx or .ascx. And the partial views use the s...

ASP.NET MVC Html.ActionLink CSS Background Image

Hi, I have been trying to set an image on an HTML.ActionLink by adding a CSS class for a link (a) and using the background-image to display the link as an image. This works great in all browsers but IE 6 and IE7. I need to get it working in these browsers, but can not figure it out. Any ideas??? a.edit { background-image: url("...

How to get modules to work in the Zend Framework

I'm getting the following error when trying to use a modular layout in my Zend Framework application: Undefined index: authentication in C:\PHP\includes\Zend\Controller\Dispatcher\Standard.php on line 385 The following code runs before this error: if (!$this->_acl->isAllowed($role, $resource, $privilege)) { $request->setModuleName('...

Manually coding MVC Views vs. asp:ServerControls

I barely got into ASP.Net webforms when MVC came out, and now I'm ready to try it out. But, I want to clarify something to be sure I understand the View coding in ASP.Net MVC... I've heard that you must hand-code all the HTML in the View layouts, and that you cannot use server controls for this. Now, I like the way you can use the asp:L...

MVC done right - Examples

I am new to both the MVC pattern and PHP frameworks. I picked up a copy of CodeIgniter for Rapid PHP Application Development, but the author does not use the M part of MVC and I can't seem to get his code examples to work. CodeIgniter's User Guide is not very detailed about what goes into which component either. What I'm looking for are...

Using params['named'] in Cakephp

url: /contents/view/chapter:models/section:associations class ContentsController extends AppController { function view() { $this->params['named']; } } For example, I have the url and controller above and the goal is to use the key/value information from the url to query a database. How would I create a model to do ...

LINQ to SQL - converting temporary users to real users

In creating a new ASP.NET MVC application, I have an issue with the approach I'm using to store user-created data for temporary users who have yet to create an account which I then try to convert to a real user. That probably doesn't make much sense, so let me explain: A visitor to the site can enter profile settings before being made ...

CodeIgniter: Create new helper?

Hi, I need to loop lot of arrays in different ways and display it in a page. The arrays are generated by a module class. I know that its better not to include functions on 'views' and I want to know where to insert the functions file. I know I can 'extend' the helpers, but I don't want to extend a helper. I want to kind of create a help...

What would my controller be in these scenarios in a mvc web application?

1) Where does the homepage of your website fit into "controllers"? I've seen some people use a "page" controller to handle static pages like, about, home, contact, etc., but to me this doesn't seem like a good idea. Would creating a distinct controller just for your homepage be a better option? After all, it may need to access multipl...

JQuery, MVC & Master Pages

What is the correct way to include the JQuery libraries via a master page? It appears there is a set for development and a set for production. I tried an "#if DEBUG" in my master page and it tripped errors left and right. I was also using <% %> style code and found out that I am not allowed to do that either. And my google-fu has not...