CORT0619 Posted May 2, 2012 Share Posted May 2, 2012 In a class I was taking the teacher taught pagelets (building php pages off of one template) however, my hard drive crashed so I lost all of my notes on this subject and I forgot exactly what I need to be able to build the pages. Does anyone know exactly how this is done or know of any resources that talks about using pagelets? Quote Link to comment https://forums.phpfreaks.com/topic/261930-php-pagelets/ Share on other sites More sharing options...
QuickOldCar Posted May 2, 2012 Share Posted May 2, 2012 the term pagelets is a very old term, try looking for "user controls" Look into any of the template engines such as smarty you can easily do something like this with an include() <html> <head> <title>My title</title> </head> <body> <?php include('header.php'); ?> <?php include('body.php'); ?> <?php include('footer.php'); ?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/261930-php-pagelets/#findComment-1342205 Share on other sites More sharing options...
CORT0619 Posted May 2, 2012 Author Share Posted May 2, 2012 I understand it's just that the way that the instructor taught the only thing that really changed from page to page was the content and there was nothing that needed to be changed except for added defining the title and things of that nature but they changed from page to page dynamically. Quote Link to comment https://forums.phpfreaks.com/topic/261930-php-pagelets/#findComment-1342476 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.