all 3 comments

sorted by: hot top controversial new old
[–] -1 points 2 months ago (1 child)

Of all the languages, I’ve never understood why people “extend” PHP. It’s already got everything baked in. If you need a bloated framework on top of PHP, then PHP isn’t the answer you were looking for.

  • source
  • hideshow 2 child comments
  • [–] 2 points 2 months ago (1 child)

    Twig is easier for security, everything is sanitised by default. Also helps to separate your view layer from your logic.

    Think about how Wordpress goes about it, mixed logic and views and needing to wrap everything in an esc html, esc attr or whatever else other functions they have available because they decided to go the native php route.

    Twig has a valid role to play in php web dev I reckon.

  • source
  • parent
  • hideshow 2 child comments