Hello All,
I am learning the PHP MVC pattern for my backend implementation. Looking at this excellent example:
Implementing MVC in PHP: The Controller
http://onlamp.com/pub/a/php/2005/11/03/mvc%5Fcontroller.html
I feel comfortable with the execution flow in a GET.
But there is no mentioning of what happens in a POST. What would the t...
I starte iPhone Development five days ago.
To learn some techniques I created a view based demo application. Now I want to integrate Core Data in my app and run into a typical mvc "problem": Passing data between view. I read several postings here on stackoverflow (i.e. this one) but they doesn't cover the case if somebody wants you use...
what is the MVC and why i use it in Struts
...
I have this Swing app I'm working on that has a pair of JSliders and JTextFields that both display & control the value of two numbers. Right now I kind of hacked things together to make it work, intercepting change events and updating the display. However I'm thinking a better way would be to make a model that has the two numbers and som...
I've created a routing structure whereas the action part of the URL serves as a dynamic handler for picking a specific user created system name. i.e.
http://mysite.com/Systems/%5BSystemName%5D/Configure, where [SystemName] designates the name of the system they would like to configure.
The method that routes the system is the following...
Or should error messages be handled in the view? I usually try to just send true and false from my models.
Great to hear what you guys do!
...
I have a virtual function that is called handlePathChange() in my Controller class.
It checks the current URL and should dispatch the right view for it.
Here's the code I have so far:
void Controller::handlePathChange()
{
if ( app->internalPathMatches(basePath) )
{
string path = app->internalPathNextPart(basePath);
...
I am about to start writing my first big CodeIgniter application, but before I get started I was wondering what the role of libraries should be. I'm a newbie to MVC, but from what I gather the model should be where the data structures are stored (business logic). So is the library a place to write application logic, in addition to contro...
I applied MVC (Model View Control) in web application but I never applied MVC on Windows application.
How can I apply it in a Windows application? If any good link?
...
Rather than use a full-blown PHP MVC, I'm designing one that will best-fit my uses. I have the basic framework done, and have coded the models and controllers I'll need to run my website.
Now I'm moving onto the Views, and I've encountered a small dilemma. My approach is working fine for me, but for future reference, I want to know if w...
ok i use this route
routes.MapRoute(
"Catalog/Data",
"Catalog/{*data}",
new { controller = "Catalog", action = "Category", data = "" }
);
the Url looks something like http://localhost/Catalog/Computer/Harddrives/internal
Data beening the Computer/Harddrives/internal part
i split it apa...
Hi all,
I am new to JQuery FullCalender(http://arshaw.com/fullcalendar/). I need to show only two weeks of a month in the page (I am using ASP.NET MVC framework).
Can i show only two weeks instead of full month ?
Appreciate if some useful links provided :-)
Thanks in advance.
...
I have a table of Vendors (Vendor object) where one of the columns is a NULLABLE foreign key reference to my Accounts table (Account object). On my edit form I display the list of Accounts as a dropdown list. I have no problems setting a value nor updating the value to another account.
However, I have been unable to clear the value. Eac...
Basically this is a questionnaire, but that does not only ask Yes/No type of questions. There are questions that are asked in the form of a table. Here is an example of one of the step pages for the questionnaire:
The questionnaire allows for a client to save what they have entered, log out, come back at a later point in time and contin...
I recently ran into a situation in which accessing session information from view is the most intuitive and quick solution to the problem. So, I just did it without thinking too much. But now when I revisit my code. I somehow feel uncomfortable about the decision I made earlier. I can't clear state what is wrong of doing what I did. Just ...
Does anyone have any basic instructions for setting up a first MVC project in Visual Studio 2008? I just installed Visual Studio 2008 and I am finding various instructions on how to set up the programming environment but its very complicated and there is no way to tell if the route I am taking is the best one.
If I want to start devel...
Hi there,
I currently work on a small application with models, mappers and controllers.
My question is, (because I did not found any matching answer), how does the mapper interact with the model (& the controller), when we have the following situation.
$user = new UserModel();
$user->setId('21');
$userMapper = new UserMapper($user);
$u...
I'm trying to pass a list of a few items to a view via the ViewData to create a drop down list. This shouldn't be too difficult, but I'm new to MVC, so I'm probably missing something obvious.
The controller assigns the list to the ViewData:
ViewData["ImageLocatons"] = new SelectList(gvr.ImageLocations);
and the view tries to render ...
Is ViewData of MVC is equivalent to ViewState Webforms ?
...
Hello all,
Thank you in advance for any help. I am having an issue on 2 of my websites that I have created. I have Html.TextBox 's on the page that need to be filled out and I have validation working so that the validation message shows up when they are empty. My issue is with the CSS for the TextBox itself. For some reason the text...