mvc

URL routing in an MVC framework - PHP

I'm developing an MVC framework in PHP from scratch; mostly for the learning experience but this could easily end up in a live project. I went through this tutorial as a base and I've expanded from there. Requests are made like this: examplesite.com/controller/action/param1/param2/ and so on... And this is my .htaccess file: RewriteE...

Is this a situation where Qt Model/View architecture is not useful?

Hi, I am writing a GUI based application where I read a string of values from serial port every few seconds and I need to display most of the values in some type graphical indicator(I was thinking of QprogressBar maybe) that displays the range and the value. Some of the other data that I am parsing from the string are the date and fault...

Working with partial views

Hi. I'm trying to create a page that contains a grid and searching. The issue is that I want to have a partial view for the grid and one for the searching. If doing a search, this should render the grid partial view with the new information. At the moment I need information, such as what column I'm sorting by and so on, from the grid...

Html.Action link and Html.RouteLink

Even If the url is same can i go to different action using Html.RouteLink and Action Link.Like when i click on news link i will go to news details.The url of this page is http://localhost:1390/en-US/latestnews/125.Now if i select the ddl of language in the site header in this pagei need to go to the home page of the site.The ddl (on chan...

Where should I put some code for loading application data?

I have a tab-bar and navigation controller application (like Youtube app or Contacts app). Where is the correct place to have the code for loading some data from the web? These data are necessary for all the tabs of the Tab Controller and the app can't display anything before all data are downloaded and parsed from the app (except a loa...

In an MVC perspective, where in the file system should the very basic entities go?

I'm speaking mainly of simple classes that act as containers of data for the controllers and models. Say I have a basket model which takes care of adding fruit and vegetables for the controller. However, during the page load, i.e. between values are accessed from DB or session and are written back again, I am in need to create classes fo...

mvc update creating not updatng in entityframework

IM using c# and MVC and the entity framework, now i have an entity that i am passing through to the model of the view for an update, my edit post back takes back the entity and a few extra fields that i am using editors for. i have a repository manager and it has a entity context, however when i call savechanges on my repository base (sh...

Cocoa: Creating a Window with a Variable Number of Interface Elements

Hi, I've a window that will have an unknown amount of text fields, determined by the content of a remote server. In high level terms, how should I go about this? Create a custom view or create an empty window with a backing NSWindowController and then add stuff to it when the window is opened? I've seen the examples on the O'Reilly Co...

AS3 OOP MVC with PHP

Im new to ActionScript and Flex 3... im trying to develop an MVC 100% OOP application with Flex 3 using MXML,AS3 and PHP. M (PHP) V (MXML) C (AS3) The 3 layers i choose for my development. I have 10 AS3 classes that are object related between them and some inherit or implement interfaces. The only problem here is how to interact 100% ...

Do MVA 1.0 and EntityFramework and SQL Server Soundex play together?

I want to implement a simple soundex-based query in an existing EF-based MVC app. Has anyone done this? If so, how do you construct the query? I've found several Linq examples, but I'm after pure EF. ...

How to make Multilingual Website in asp.net MVC?

I don't understand where to put the Resources and how can we take the value from that? ...

How can I go through a Set in JSP? (Hibernate Associations)

Hi All, So I am pretty new to JSP. I have tried this a few ways. Ways that would make sense in PHP or automagicy frameworks... I am probably thinking too much in fact... I have a hibernate one to many association. That is class x has many of class y. In class x's view.jsp. I would like to grab all of class y, where the foreign key of y ...

MVC: Submit one form from a page with multiple forms

I'm working in an ASP.NET 3.5 MVC application where i've got a view with multiple forms in it. Form 1 contains information about products and will form a shoppingcart with a remove button. Form 2 is as below and is to be used to get the information from the shoppingcart and create an order of it. <% using (Html.BeginForm()) { %> <%=H...

Business and data layer in ASP.NET MVC

Hi, I am new to ASP.net MVC architecture. I have read in some articles that Model will contain business and data access logic. So does this mean that i have to implement the business and data access layrers in side model folder? And it is obviously not possible to add class libraries (business layer and Data access layer of n tier) in M...

How to post data from user control - asp.net mvc

Currently i am working on project in which login user control is there in master page. earlier i had seperate login.aspx page and was able to call login method of home controller (with acceptverb = post). now we have changed the idea, want to place login control on master page (home page). Now when i click on login button of login contr...

Use of Local Resources in MVC

I have used Global Resources in asp.net MVC, but how do I use Local Resources in asp.net MVC? ...

understanding mvc: difference between a library class and a model class

so i want to follow the mvc conventions but haven't really got the hang of it. i've got problem understanding the explicit difference between a model and a library class and how they relate to each other. eg. i want to create classes to add/edit contacts and also adding them to a group. i thought it should be divided into 2 classes: C...

how to trigger a MVC application?

how do you trigger a MVC application. im only used to use procedural coding. since everything are classes, how do i trigger the first method, where should this method be put, and what should the class holding this starter method be called? thanks ...

MVC best practice when adding functions to controller?

Hi I'm writing a function in my controller; this is supposed to take in a form, process it, register the user in DB, send a confirmation email etc etc. to avoid this function to be too cluttered, I was thinking of calling some sub-functions (eg: function registration() { //process form.. _insertInDb($formdata) _send_mail($add...

Apache ReWrite Rule + MVC

Below is my current .htaccess file: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?url=$1 [PT] Currently, the rewrite rule just grabs the GET value and gives it to index.php file. So, if I have a form that logins a user the action would look like this: /user/login I am using a MVC...