mvc

Are there any MVC web frameworks for Haskell?

Are there any MVC web frameworks for Haskell? ...

File extension for Zend Framework layouts

In Zend Framework we can change the file extension of view files from phtml to php by adding following code to controller. $this->getHelper('viewRenderer')->setViewSuffix('php'); But how to change the file extension for layout files? ...

MVC. Itextsharp write pdf to response

I am generating pdf using itexsharp. I am creating MemoryStream, then when i am trying t write MemoryStream bytes in to response but no luck. When i am executing this code in my controller the pdf not coming in response. Memory stream is populaitng correctly i can see this in debugger, but for some reason this number of butes not comin...

How do you pass values between PHP pages for MVC?

How do PHP programs pass values between model, view, and controller pages? For example, if a controller had an array, how does it pass that to the view? EDIT: Thank your answers. I see a couple of them stating the components are in the same page, but when I look at something like CodeIgniter, I see three separate PHP pages for model,...

Can the model, view, and controller be in one physical code page?

Reference this question I asked: http://stackoverflow.com/questions/3833324/how-do-you-pass-values-between-php-pages-for-mvc Based upon the answers it seems everything can be in one page and it's only separated by classes and object in a logical sense. Can MVC be one physical page but three logical parts and still be "MVC"? Of the fr...

Date ranges: inclusive vs strict boundaries

When allowing a user to select a date range, let's say: Show me entries from [August 1] to [September 1] As a user, I would generally expect this to include the results for September 1. Especially when you consider that when I select the same date for both ends, I obviously mean "from start of day to end of day": Show me entri...

MVC .NET CSS not picked up by the View

Hello, I am working on a MVC2 site and am having issues getting my objects on my views to inherit the css classes. Here is my helper object and CSS that is saved in the Site.css which is linked in the master page. This also works fine if I put the CSS in a tag on the masterpage. <%= Html.ListBox("ExpenseItems", (System.Web.Mvc.Selec...

MVC - Controller class tutorial

I am looking for a tutorial / book that guides me to understand the Controll functions and the best practices to write my own controller + Model Thanks in advance. ...

mvc.net multiple forms childaction

I have 2 forms on a page, they are included in the masterpage like so: Html.RenderAction("Form1", "Controller") and Html.RenderAction("Form2", "Controller") The Controller has the following: <ChildActionOnly()> Function Form1() As ActionResult Return View("Form1", New ModelObject()) End Function <ChildActionOnly()> <AcceptV...

MVC validation message space on IE 7

I am using MVC 2 and for validation messages it is as below. <li><%= Html.ValidationMessage("City")%></li> <li><%= Html.ValidationMessage("Name")%></li> But the problem is when it is viewed on IE 7 (all validation messages are grouped as 3-4 each) it shows a big white space. But on IE 8 it is working fine. I need to render same on b...

C#/MVC and RedirectToAction behaviour

I've created MVC2 based solution in VS2010 using standard template. Site.Master is cleaned a bit, here is how HomeController looks like: namespace MvcApplication1.Controllers { [HandleError] public class HomeController : Controller { public ActionResult Index() { return RedirectToAction("About"); ...

How to automatically add tags to plain text data?

i'm making a recipe database, but i want a table for ingredients and for actions (i.e whisk) and when a user submits the plain text instructions i want it to wrap those keywords with div tags. is there a similar app that does something like that? ...

MVC customised URL routing

we want to short the down the url in mvc this is what it looks like www.xxx.com/orgin-to-destination/date/time and we are interested in www.xxx.com/origin-to-destination On the webpage we have 4 testboxes for this all 4 parameters In the controller we have a method which accepts 4 parameters which are origin,destination,date,time S...

rails page titles

I don't like the way rails does page titles by default (just uses the controller name), so I'm working on a new way of doing it like so: application controller: def page_title "Default Title Here" end posts controller: def page_title "Awesome Posts" end application layout: <title><%=controller.page_title%></title> It wo...

How can I securely accept form data in a jsonp request within my mvc app?

I have a need to accept form data from other web sites to a central MVC application. The form data is just strings of name value pairs and they vary from site-to-site. I plan to concatenate all values and delimit them with a special character. Up to this point, I think I can do this with a JSONP type request using AJAX. What I'm conc...

ul li list with unique id in Zend_Form using decorators

hi everyone, I need to make the following html using Zend form and form decorators... <ul> <li id="containeruser1"> <label for="user1"><input type="checkbox" class="textbox" value="1" id="user1" name="users[]">User One</label> </li> <li id="containeruser2"> <label for="user2"><i...

How to populate 3 text fields with 3 different ViewController?

Hi I have the following situation: 1) On the main ViewController, I have 3 UITextFields. The user can fill them with keyboard or choose values from 3 ViewsController, which have a Picker to choose from values; 2) Now, I can declare 3 NSString in the main View Controller (obviously with @property(retain, nonatomic) so that they are to ...

Discuss on MVC implementation on iPhone

Hi, Im a using the MVC pattern for a while on different frameworks such as (swing, android, gwt ...) Now, I'm learning the iPhone framework and I am quite surprised about MVC implementation. The questions I am asking are about the view and controller interaction. First of all, that's the way I conceive the MVC pattern : The view and...

objective-c delegates and events design (I don't get it)

Hi I'm pretty new to the objective-c language (less than three month) but is something that i really need to understand. Suppose a controller (in a iOS environment) that manage a table view for input data from the user. The table must have a editable cells and some features for make the value selection easier, for example a button that...

CakePHP SignBox Component

Hi, I'm trying to implement a simple login box to my web application, just a regular username and password field if no session is detected and a welcome message if there is one, i started with the following: I thought a simple element will do the job, but i realized than i can't include css or js(not inline) from an element because th...