.NET vs PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
petersmith
Forum Newbie
Posts: 4
Joined: Wed Dec 14, 2005 9:05 am

.NET vs PHP

Post by petersmith »

In ASP.NET I can use MasterPages...these are templates on which I can base each page I create...so where normally you would have a frameset now the masterpage does all the work for me...
How can this be achieved in PHP?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Sounds like you could do the exact same thing using include() to pull different scripts into a template file ;)

You might also want to look at Smarty: http://smarty.php.net/
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Afaik php doesn't have a (standard) implementation for masterpage (.net) / tiles (java).

A very simple implementation: http://timvw.madoka.be/?p=431
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Interesting concept. Thanks for the tip, timvw.
Post Reply