"Martin Wickman" <wizball@hotbrev.com> wrote in message
news:slrnbogdvn.ek4.wizball@babar.tuffmusik.nu...[color=blue]
> In article <vofl3rbms24h4e@corp.supernews.com>, Eric Veltman wrote:
>[color=green]
> > Before looking at PHP, I've used ASP.NET extensively for
> > about a year and some things that I like a lot about it :[/color]
>
> [...]
>[color=green]
> > These are, I guess, the most important ones.
> > From what I've seen from PHP, the barebones PHP is more or less
> > equivalent to old-fashioned ASP,[/color]
>
> The main difference is that MS forces their way of doing things, that
> is, with events and aspx etc. Personally, I can't deal with their
> overly complex template structure. But some people apparently like it.
>
> The points is that php can (of course) do all those things as well,
> but it leaves the choices to the developer. It does not try to stuff
> anything down your throat.
>
> Take a look at
http://smarty.php.net/ if you want a template engine.
>
> My personal experience is that one should not try too hard to separate
> code from design in a web environment, its not worth the effort.[/color]
I strongly beg to differ. In the 3 tier architecture one strives to separate
the presentation layer (user interface) from the business layer and the data
layer. In a web environment that means that you do not have a single
component which generates HTML, processes business rules and communicates
directly with the database. I have created a development environment around
the 3 tier architecture (refer to
http://www.tonymarston.net/php-mysql...structure.html) in which the
business layer is PHP but the presentation layer is XML/XSL and CSS which
results in XHTML 1.0 Strict. This makes maximum use of template engines
which are controlled by open standards (supervised by the World Wide Web
Consortium) and not small-time proprietary standards written specifically
for PHP.
The advantage is that I can produce web applications where the presentation
layer can be customised and modified without ever touching any code in the
business layer. All it needs is knowledge of HTML, CSS, XML and XSL which
should be the standard tools of any web developer.
Just my personal opinion.
Tony Marston
http://www.tonymarston.net/