Jump to content

PHP pagelets


CORT0619

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/261930-php-pagelets/
Share on other sites

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>

Link to comment
https://forums.phpfreaks.com/topic/261930-php-pagelets/#findComment-1342205
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/261930-php-pagelets/#findComment-1342476
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.