mvc

Adding items to a Zend_Paginator already created?

Hello, in my controller I have created a paginator instance like this: // On crée un objet paginator pour afficher un tableau de résultat. $paginator = Zend_Paginator::factory($versions->getVersions($projectId)); $paginator->setCurrentPageNumber($this->_getParam('page')); $paginator->setItemCountPerPage(15); Then I iterate over in my ...

PushViewController after presentModalViewController like in Apples Alarm Clock app

Hello together, my Question is quite simple. I have an add-button. When I tap on it --> presentmodelviewController presents a UIViewController, which contains a simple Table with cells. When I tap on a Cell, i want to display a new View using pushViewController, which automatically creates a "back Button". At the top of it in this n...

How to sort XML in LINQ C# by an attribute value? Also MVC

(Using the latest MVC 2 RC 2) I'm trying to sort some XML in LINQ (C#) by an element's attribute's value... var sites = from s in xDoc.Element("sites").Elements("site") orderby s.Attribute("name") select s; But when I pass this to my View I get the exception: Exception Details: System.ArgumentException: At least one object must imple...

Is the MVC design pattern used in commercial computer games

Is the MVC design pattern used in commercial computer games? Particularly with regard to high performance games I am curious if there have been any commercial users of MVC in the games industry? ...

is there something similar to asp.net mvc for winforms or wpf ?

anybody knows something similar to asp.net mvc for winforms or wpf ? ...

Jquery, Autocomplete using json, id's vs display values

I have kind of a complicated autocomplete issue. This is for a messaging system for a website I'm working on. I want it to work where you type in a user's name, it comes back with a thumb of their image and their name and their id. Then, when you select it, I want it to show the users name, but when it posts back I want it to send bac...

Composing a Controller class with Dependency Injection in PHP

How to solve the problem of composing a Controller class in PHP, which should be: easily testable by employing Dependency Injection, provide shared objects for end programmer provide a way to load new user libraries Look down, for controller instantiation with a Dependency injection framework The problem is, that derived Controll...

Picking a PHP MVC Framework

Hi, I have been a PHP developer for almost six years now, and during that time, I've written everything by hand. Literally everything. I'm now interested in learning more about MVC, and, as such, am interested in picking up a framework to play with. Before I go any further, let me just say that I know this question is subjective, and...

Architecture switch from ASP.NET Page and JSON ASMX Web Services to MVC

Right now, this is how we do things on our site at work: there's an .aspx page that does absolutely nothing in the codebehind, but contains the markup for the page in the Design View. Then we have an .asmx web service that receives requests with JSON content-type. These are called by the JavaScript in the page. This web service returns ....

ASP.NET MVC, JQUERY Portlets and Personalization

Is there any sample/links/thoughts for implementing asp.net mvc application with jquery portlets and asp.net personalization provider? All thoughts/ideas/feedback are welcome ...

Is it correct that part of business logic stays in the controller?

Hi having a simplified class like this that regulate a quiz game: class Game(): def __init__(self,username): ... self.username=username self.question_list=db.getQuestions() self.game_over=False def get_question(self): ... if self.question_list.is_not_empty(): return question def check_answer(answer) ...

ASP.NET MVC url construction

Before I ask my question: I just started ASP.NET MVC, so an advanced answer will maybe hard to understand ;) I'm having 3 tables (I'll add just a few of the fields below) Shops (ShopID, Name) Products (ProductID, Name, ShopID) Comments (CommentID, ProductID, UserID, CommentText) Now what I want to do is this: www.site.com/Shops ...

How to do a dual listbox set up in ASP.Net MVC?

This may be silly, but trying to do a dual list box in ASP.Net MVC. I have the client side part working fine with options moving back and forth, but what I would like is for the person to be able to save when they are done. This means I have to post all of the values in the "selected" list box. I don't want to rely on the user leaving th...

asp.net mvc set action explicitely

I have 2 views for a input operation in my application. The first view (lets call it view1) submits a form. Based on the form some operations on database is done and second view(View2) is returned with some other data from the database as a model. controller action code : [AcceptVerbs(HttpVerbs.Post)] public ActionResult View1(FormCol...

Entity Framewotk Filter query

ClassABC is not a valid metadata type for type filtering operations. Type filtering is only valid on entity types and complex types. .Search(columns_to_search, parseSearchString(SearchValue)) I got above error when i use in my entity framework query. (from cp in ctx.ABCSet select new {...

ASP.NET MVC + C# Search Functionality

Possible Duplicate: How to implement search features in ASP.NET MVC applications I have a program designed using Asp.net MVC and c# I want a simple way to implement a search for the data that I have using the models and Controllers I did it by doing a script in a page itself but I want it by using Models for example I ...

C# ASP.NET, WebForms to MVC : Does it make sense to change in our case?

We have a WebForms based web application with these properties: Large Business Object Framework (Close knit DAL / Business Objects / Serverside Validation, similar to CSLA) Precompiled and placed in the Bin folder. Uses a lot of UserControls. Looking at overviews of MVC it seems there is a distinctive split on how the code is split up,...

How to make rich/compound views

Hi, I have recently started to examine asp.net mvc. I have studied quite a few examples and common to these are that they contain quite simple scenarios, where a view will map to either an instance of a type in the model or a list of a paritcular type from the model. I'm looking for guidelines to compose/composite views. In the long ...

dynamically Frame the URl in c#

In c# i need to frame the folllowing URL dynamically,here Action is redirectURL and the Controller is Books,when i post the page i send the url to some other page in follwing format.is it posible to frame the URL with "localhost:7187" dynamically? http://localhost:7187/Books/redirectURL ...

how to add a new php file to mvc concept

how to use the mvc concept, i need to add a php file to mvc concept. please explain ...