Tagged Questions
2
votes
0answers
39 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
45 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
34 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
31 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
120 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
58 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
211 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
98 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 ...
0
votes
3answers
91 views
Understanding application logic in MVC
In my effort to understand MVC in a simple way (I'm trying to make a demo application of my own), I've followed Symfony2's Symfony2 versus Flat PHP material, I've changed some stuff along the way ...
11
votes
6answers
231 views
Should views hold model references?
Let's say we have the following classes:
View
@interface ArticleView : UIView
@property IBOutlet UILabel *titleLabel;
@property IBOutlet UILabel *bodyLabel;
@end
Model
@interface Article : ...
0
votes
1answer
52 views
CodeIgniter helper in the view
Is it a good workaround and would it be possible to use helper classes in the view, in CodeIgniter. I have a situation when I have to extract with regulars expression from a text couple of strings and ...
0
votes
1answer
36 views
Adding properties to object at runtime, and saving to a database
I have a set of model class definitions, each with some properties and methods.
Each new model class definition is mapped to its own database table, the properties forming the table columns. Each ...
3
votes
1answer
133 views
Java - OOP and MVC [closed]
I am trying to understand how can I implement MVC into my Java application, read couple of tutorials and MVC hello worlds, but I am still not sure about many things, so I would be glad if you could ...
0
votes
0answers
18 views
Pass arguments to models method from view in joomla2.5 [duplicate]
how do I pass arguments to joomla model from view.
controller
$view->setModel( $this->getModel( 'item' ), true) ;
I have this in my view.html
$this->items = $this->get(Items);
...
2
votes
2answers
280 views
MVC For advanced developers [closed]
I need some help from more experienced programmers. I want to improve my MVC. But I could not find a good tutorial on Google for MVC. Google'm always give "MVC for beginners."
I understand what MVC ...