Article written by

6 Responses

Page 1 of 1
  1. Steve
    Steve at | | Reply

    You should also point out that the first example is wide open to remote file inclusion attacks as it takes an external variable and doesn’t sanitize it before use.

  2. marcus kielly
    marcus kielly at | | Reply

    http://www.phpwact.org/pattern/page_controller

    A controller/view style object used for serving each page – but without the need for a front controller. Nice for small sites, but can lead to duplicate code between controllers.

  3. John Conde
    John Conde at | | Reply

    You should also point out that the first example is wide open to remote file inclusion attacks as it takes an external variable and doesn’t sanitize it before use.

  4. Marcus Kielly
    Marcus Kielly at | | Reply

    Personally, I think you would be MUCH better off using a Page Controller if you haven’t got the time/inclination to roll your own/deploy off the shelf MVC. All you need is a bit of dynamic URL interpretation to load the relevant class.

Leave a Reply