I've been reading and learning about Object-Oriented programming (Head First Object-Oriented Analysis and Design and Code Complete: A Practical Handbook of Software Construction – thanks to suggestions found on StackOverflow). I've also been learning how to use a couple PHP MVC frameworks (specifically Codeigniter and Kohana).
Some of ...
Hey there! I'm relatively new to both GWT and java programming (or OOP for that matter), so apologies for the beginner questions/mistakes in advance. I've been trying to create some kind of observer pattern, but the development mode console keeps dropping error messages and sadly, they're far from helpful.
So here's what I'm trying to a...
Hello
I saw this case in the Codeigniter Users guide where they introduced the model.
I just wonder why they took values straight from the input in the model and didnt
pass them as methods parameters for it..
Is it a bad practice to do it like that?
Im considering to refactor my own framework...
...
I am new to unit testing, I understand the basic concepts, and I am able to get unit testing setup correctly in my Cocoa projects; however the thing that is giving me a hard time is what exactly I should be writing unit tests for. For example, I know that you should write tests for model objects, but is that all I should be writing tests...
I try to be very good about keeping my view code and my controller code separate, but occasionally I run into situations where I need to use the same function in the controller and in the views. Where should I put this function so that I can access it from both the controller and the view?
...
I have following situation:
I'm developing an address-application to store the details of our clients.
I've got the following db-structure:
Clients hasMany Addresses
Addresses belongsTo Client
Addresses hasMany AddressEmails and AddressPhones
If someone now adds a new client, his primary address with 1 email and 1 phonenumber should...
It seems to me that web developers of different programming languages often share different opinions on this. For example, Ruby web developers (with Rails being the dominant framework) appear to think of controllers as glue code, which should have functional tests, but not unit tests. A similar attitude dominates in the PHP world, yet th...
I am working with two MVC systems that need merged. It appears both use different session variables and different cookies. The main problem I have is trying to get each one to pass sessions variables back and forth, which it does not want to do.
What is the best way to go about merging the two?
Update: I am trying BlueImp chat with ano...
I need a bit of help.
I have this in my view
$salutation = array(
'Mr.' => 'Mr.',
'Mrs.' => 'Mrs.',
'Dr.' => 'Dr.',
);
echo form_open('membership/update');
echo form_dropdown('Salutation', $salutation, 'Mrs.');
The dropdown works in all but one fashion, it does not pre-select 'Mrs.'. How ...
I have a page that has a bunch of widgets on it. Each widget is a view. Right now the widget rendering is done in a foreach loop like so.
public class WidgetCollection : List<Widget>, IPersonalizable
{
public void Render(HtmlHelper html)
{
foreach (Widget w in this)
{
html.RenderAction("D...
I have many models, let's say "Model1", "Model2" and "Model3". I have a certain group of actions that usually calls a method from each of these models and executes them in order:
$user_info = $this->load->User_model->load( $user_id );
$this->load->Car_model->deleteCarsForUser( $user_info );
$this->load->Message_model->sendMessage( "Car ...
Hi all
I need to give download functionality in my application. I am getting list as a parameter in method.
My question is how to convert Generic List to bytes?
Any help will be appreciated
Code is as follow:-
static byte[] GetAppReportExcel(List<Report.ApplicationReport> listData)
{
byte[] ByteStrings = new byte[listData.Count];
for...
The well known Command pattern is used often when you want to implement a model with Undo/Redo capabilities. I am looking for a reference implementation (example) of a simple Delphi form that implements undo/redo.
From what I have seen, simple delphi data-entry forms with three Edit boxes, six memo boxes, and a few combo boxes and ot...
I have an ASP.NET MVC app and I have a WebForm page I built in the MVC due to a tutorial on how to do something I needed to do, but it was all in WebForm style. Ive tried to figure out how to do the same thing in MVC format but cant figure it out. So I was needing to figure out how to use this page in my MVC app. But when I try to go to ...
Yesterday I have a talk with my ex-boss, he was a great programmer but the old style B-)
me: boss have you heard about Presentation Model AKA MVVM?
him: yes, but I don't like it
me: why? it is already have a worshiper out there,
him: not necessary to me.. you know dude, i don't want to DRY my domain in Model and View Model, and somet...
i want to display images in mvc.net? help anybody :)... im uploading images through silverlight control and storing them on directory at my hard disk
...
Hello,
Let's suppose that we have poor MVC framework without modules support. Our aim is to implement admin panel with some functionality.
Url for all admin panel features will start with /admin (/admin/add_user, /admin/remove_user) etc.
As we don't have modules, so we have to create Admin controller (yes, this controller probably will...
Hello,
First question
Please, could you explain me how simpliest ACL could be implemented in MVC.
Here is the first approach of using Acl in Controller...
<?php
class MyController extends Controller {
public function myMethod() {
//It is just abstract code
$acl = new Acl();
$acl->setController('MyController');
...
Possible Duplicate:
Choosing a Java Web Framework now?
I know that Ruby-on-Rails and Django are 2 MVC oriented webframeworks, in Ruby and Python respectively. Are there any other MVC frameworks ? Any MVC frameworks that use Java ?
...
Hello all!
I've got two classes in my MVC project Order and Product.
Because Product can be ordered many times and Order can have many products I've got third entity which is OrderedProduct. It joins those two entities in many-to-many relation.
Now what I'm trying to do is to let user to make an order by putting products from the drop...