PHP code example of tjm / buffermanager
1. Go to this page and download the library: Download tjm/buffermanager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tjm / buffermanager example snippets
$bufferManager = new TJM\BufferManager();
$bufferManager->start('block1');
echo 'This is in block 1';
$bufferManager->end();
$bufferManager->start('block2');
echo 'This is in block 2';
$bufferManager->end();
$bufferManager->start('main');
r->start('aside');
encode(Array(
'title'=> $pagetitle
,'main'=> $bufferManager->get('main')
,'aside'=> $bufferManager->get('aside')
));
}else{