SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2006
    Washington DC and Skopelos, Greece
    0 Post(s)
    0 Thread(s)

    Simply JS and PHP

    I'm working my snail pace through the current PHPlive class, and at the same time, I'm reading Kevin's book "Simply JS". In the latter, Kevin talks of the three layers, Content, Presentation and Behavior. Shouldn't PHP (and maybe XML) be folded into this model?

    I'm not new at this - I just know enough to be dangerous. But I think you all are beginning to establish the high ground for teaching - Lynda has bits and pieces but no one really puts it all together..

    Just a thought.. Maybe an overall course to "lay out the waterfront"... 2010 version..
    The only way I can repay your help, is to help others.

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Northeastern USA
    56 Post(s)
    1 Thread(s)
    XML would probably be considered content in most cases.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Sydney, NSW, Australia
    25 Post(s)
    1 Thread(s)
    Those are the three layers on the client side. There are also somewhere between two and five layers on the server side - not so clearcut because most of the layers server side are written in the same language as one another and so don't have quite the same separation as client side.

    Usually you'd consider at least three layers with

    - template
    - business logic
    - data

    but more layers are possible depending depending on the project complexity.
    Stephen J Chapman, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts