Re: Category-Proposal: Patterns
| From: | Tony Bibbs | Date: | Fri, 21 Feb 2003 18:51:10 +0000 |
| Subject: | Re: Category-Proposal: Patterns | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13595@lists.php.net to get a copy of this message | ||
On Fri, 21 Feb 2003, George Schlossnagle wrote:
> Can someone explain to me again how you take an abstract pattern like
> MVC and create a base representative enough of that patter that it is
> both useful and accurately named?
>
> George
Well controllers are very basic, they just need to know about commands and
how to pass control from one place to another. That basic need doesn't
change. So a base controller class would facilitate a lot of that for
you. You would simply need to define your command and update the config
file the controller uses for application flow.
The command object in a similar abstract way. Instead of spelling all
this out please look at the links to the docs I already posted. Again,
look at the MVC in struts (which I also posted).
So as not to just spin our wheels....maybe I can work up an example
package with a very simple app that demonstrates this. Again, I'd
encourage anybody following this thread to look into some code for Phrame
and, if that doesn't help, struts.
--
Tony Bibbs "I guess you have to remember that those who don't
tony@tonybibbs.com hunt or fish often see those of us who do as
harmlessly strange and sort of amusing. When you
think about it, that might be a fair assessment."
--Unknown