Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
28 views

Improving the Controller Module of an MVC - How to?

The code below is for modern browsers only. The current structure uses two module patterns Cin and Cout. As the controller handles all (in)coming and (out)going requests to the user, this made most ...
0
votes
0answers
16 views

MVC - Is the “current connected user” an information that should be shared with the domain?

I'm working right now in a readers social network. The main points are this: When an user connects with his account I save his user id in the session variable. My MVC is working with DTO's all the ...
0
votes
0answers
8 views

How to Decouple a Custom ListCellFactory From Controller?

I'm writing a UI with JavaFX 2.1. It looks like this: So far so good. For the right list I have some custom elements- questions I want the user to answer. It's a string with three Comboboxes that ...
3
votes
2answers
150 views

Best practices for decouple classes in C#

So this is a lot more confusing than it has to be (I could just stick all of this in the main class with the ui event handlers) but I wanted to decouple this class for learning purposes. Basic ...
1
vote
1answer
73 views

PHP MVC Framework Class

In an effort to learn as much as possible about best development practices and software architecture, I created my own MVC framework using PHP (github: https://github.com/alemmedia/miniMVC). I've ...
2
votes
2answers
204 views

PHP Router MVC OOP

I just finished rewriting my Router class. Any input would be much appreciated. The class routes URLs based on a site.com/class/method/param/param/etc syntax. One thing I've done differently is ...
2
votes
1answer
67 views

Where to put menu items in MVC with PHP ? Model or controller?

This is my first attempt with MVC and I almost get it but a small thing bothers me. I have this controller in CodeIgniter: <?php class Page extends CI_Controller { public function ...
1
vote
0answers
137 views

Pvik - a small PHP framework

Somebody told me, that this might be the right place to publish a project and get other developers involved. Otherwise maybe somebody of you know where this would be a better place. Pvik is a ...
2
votes
2answers
200 views

MVC; am I way off here?

So I have been writing a very slim MVC framework to drive a small personal website. It's nothing intricate and mostly just for fun and a learning experience. I should be specific here; this is the ...
1
vote
1answer
66 views

Some feedback on a Javascript MVC app that uses functional inheritance

I'm looking for some feedback on my implementation of MVC and functional inheritance (as described by Douglas Crockford in his book 'The Good Parts') in an app that uses the YouTube API. This is my ...
1
vote
1answer
72 views

Best way to implement a web MVC application (language agnostic)

Well, the questions is a little bit broader, so I'll assume that the basics is already defined: Controller FrontController Controllers (plugin hooks, request/response object, view handler) View ...
0
votes
0answers
37 views

Refactor This Class To Do Away With Unnecessary Member

I have a View instance with a member that I wish to remove. public final class View extends CasaSprite { private var _chosenTemplate:TemplateVO; This member is used only once. When my View gets ...
3
votes
1answer
115 views

How to write html flash messages?

Flash messages are generally composed in the controller. Some times we need those flash messages to have links in them (like an undo button). How would you go on to compose such a message? The only ...
2
votes
1answer
59 views

How to shorten long code but still keep in the philosphy of Zend framework

I have been wondering this for a while. Take this example: <?= Zend_Registry::get('translate')->_('translate me!'); I have my views cluttured with such code. My coworkers also complain often ...
2
votes
2answers
71 views

Should view related methods be included in models?

class Submission < ActiveRecord::Base def get_status_css() if self.status == IN_PROGRESS "info" elsif self.status == FAILED "error" elsif self.status == COMPLETED ...

1 2 3
15 30 50 per page