Tagged Questions
0
votes
2answers
33 views
What type of View am I using in my MVC application?
I am far from being an expert in the V area of MVC and have been experimenting with different Views lately, the one I am currently trying out might not even be a proper View with a name, it's just ...
0
votes
2answers
50 views
Where should I place DO property checks that require input from other objects?
I am trying to get my head around the structure of domain objects, data mappers and services, I am however struggling to grasp exactly what goes where.
This question is very similar, but does not ...
-1
votes
0answers
81 views
My MVC framework - is my approach to MVC and OOP good? [closed]
Recently for learning purposes i started to develop little MVC framework but I can't figure out if my approach for MVC and OOP is good. Mostly I want to know if passing classes(libraries) to the model ...
4
votes
3answers
113 views
Objective oriented design in a PHP MVC Framework
Traditionally in a MVC framework (Such as CodeIgniter or Kohana) I create controllers as I create different pages. There will be a login controller, a home controller and so on. But recently I learned ...
0
votes
0answers
47 views
Is this correct implementation of MVC pattern for PHP website? [migrated]
I'm currently developing a music website using OOP PHP and I'm trying to correctly implement the Model View Controller pattern.
I am creating this website from scratch so I would like to avoid ...
2
votes
0answers
89 views
Passing data associated with a user object between views- PHP MVC
I am using a lightweight PHP MVC (homegrown--not by me--but based off of Codeigniter) to develop a web application. Currently, I only have one object--the User.
The web application allows each user ...
2
votes
1answer
62 views
OO PHP and MVC: calling a method from another controller?
This may be due to a gap in my understanding of the PHP Object-Oriented model, but bear with me and see if you find it makes any sense/any glaring errors. Anyways, in a MVC app I have two controllers, ...
2
votes
1answer
49 views
How do I keep value objects from the server?
I communicate with the server through jsons, which both in Nodejs and in Actionscript are objects (serialized through string).
Those objects I use in my client, by reading / modifying them and also ...
0
votes
0answers
48 views
What should be returned in model?
I'm very confused in this problem. For example, I have a "user" database table. What I've been taught in my university about MVC is:
I must have a User model object which contain properties, ...
0
votes
2answers
35 views
different style of android event handing
I found that there are two style of code writing in event handling of android. One is calling method like setOnClickListener and pass an anonymous class in java, the other is adding a xml attribute ...
0
votes
0answers
44 views
object-oriented “function libraries” using namespaces in php
I have been developing a MVC framework using php 5.x.x for about six months now. I understand that it is viable to use existing frameworks for the sake of not reinventing the wheel. However the basic ...
1
vote
3answers
127 views
Show / hide links in MVC view based on permissions
I understand how to implement ACL and restrict access to controller methods.
What I don't understand is how to display certain links only for users with certain permissions in the view? Could someone ...
0
votes
2answers
94 views
PHP: autoloading multiple classes with namespaces
I'm trying to build my own framework for internal usage.
I got structure like this:
index.php
boot /
booter.php
application /
controllers /
indexcontroller.php
core /
...
8
votes
5answers
227 views
MVC - Is It Wrong To Redirect From Model
I would like to ask whether it's a good approach to redirect from within a model instead of a controller.
The reason I want to do that is because it is easier to unit test redirection from a model (I ...
3
votes
3answers
126 views
Understanding / improving a barebones MVC framework
I realize this topic has been asked and addressed repeatedly, and although I've read through countless similar questions and read through countless articles, I'm still failing to grasp a few key ...