Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.