Posted by funky on 12/31/05 18:40
Hi lugh!
I see what you are getting at. I however do not understand how the
array can be a model. Normally in MVC the model is what the view
represents and it (the model) should not really know anything about the
view (or the controller). The controller knows about the view and the
model.
In your example I would say that the array is more like a controller is
it "controls" what the next view will be based upon a url parameter (i
guess).
I like the idea that you give pages ids. In fact I do that in some way
as well. Instead of using urls, I use a class which converts ids to
urls so that if i ever change a path I do have to do a grep over all my
php files.
Is this how you organise your php web pages?
Cheers,
funky
[Back to original message]
|