Re: Simple model-view -separation
From: Tim Van Wassenhove (euki_at_pi.be)
Date: 07/05/04
- Next message: josh: "Re: newbie can't get form working"
- Previous message: Garp: "Re: N00b question: creating files"
- In reply to: Droolboy: "Re: Simple model-view -separation"
- Next in thread: rush: "Re: Simple model-view -separation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Jul 2004 23:11:20 GMT
In article <36ae3a0c.0407041127.76ed7598@posting.google.com>, Droolboy wrote:
> Thanks to the feedback on front controllers, I'm not so sure I'll use
> one of those anymore.
You'll be using one (but don't code it... the webserver does that for
you).
If you have some code that should be used in ever script, you could use
OOP and create a base class that contains that code. And then have every
script/page extend that base class. Or in case you don't go for OOP, the
auto_prepend setting can be usefull.
> But I may well have missed the entire point, as i've just been
> skimming through the stuff i found on common template engines..?
>From my point of view there are 2 sorts of templates. Templates to
handle data and retrieve data from the database(s). And templates to
convert the data into nice output, fe xhtml.
-- Tim Van Wassenhove <http://home.mysth.be/~timvw>
- Next message: josh: "Re: newbie can't get form working"
- Previous message: Garp: "Re: N00b question: creating files"
- In reply to: Droolboy: "Re: Simple model-view -separation"
- Next in thread: rush: "Re: Simple model-view -separation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|