How to create new Blocks
From MemHT Wiki
Creating blocks is very easy, only few rows are needed, that ensures that the file cannot be opened directly
Important: Remember to indicate the block file name in the block header
<?php if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_blockname.php")) { die("Error: This file cannot be opened directly!"); } echo "Hi, this is the block content"; ?>
Note: The variable called $title is reserved, it should not be used in blocks
| Languages | العربية • Bahasa Indonesia • Bosanski • Български • Dansk • Deutsch • English • Español • فارسی • Français • Galego • עברית • Italiano • Magyar • Македонски • Nederlands • Português • Русский • Српски/Srpski • Svenska • Türkçe • Українська • Tiếng Việt |
