'Master Page' mechanism on php web-page must be revised

bug

#1

I’m using web-page in php and recently starting using the ‘Master Pages’ feature of PG, but…

The best pratice in php-page is starting file with instruction start_session(); (or any other function managing session) to avoiding problem with some error or tips in the HTTP header.

My ‘Master Page’.php starting:

<!DOCTYPE html>
<html lang="it" data-pgc-set-master>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="User access security system, Sistema di accesso e autenticazione utente in php">
    <meta name="author" content="Michele Saltori (Italy) ~ tecnoinformatica@ivgw.eu">
    <title data-pgc-edit="SecMasterTitlePage">Master page per sistema di sicurezza</title>
    <!-- Bootstrap core CSS -->
    <style data-pgc-edit="SecMasterStyle"></style>
    <link href="bootstrap/css/bootstrap.css" rel="stylesheet">

And my ‘slave page’.php …

<?php
require_once('security_access.inc.php');
//require_once ('security_access_anonym.inc.php');
?>
<!doctype html>
<html lang="it" data-pgc-master="SecMaster.php">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="User access security system, Sistema di accesso e autenticazione utente in php">
    <meta name="author" content="Michele Saltori (Italy) ~ tecnoinformatica@ivgw.eu">

After ‘PG component update’ the header part of file:

<?php
require_once('security_access.inc.php');
//require_once ('security_access_anonym.inc.php');
?>

Is removed!

Outside of html code of page, ‘php block script’ cannot be inserted or/and marked as an editable area.

:pray: Why not implement script block outer html code on the ‘Master Page’?
eg:

<?php /*data-pgc-field="SecMasterHeadScriptArea"*/
?>
<!doctype html>
<html lang="it" data-pgc-master="SecMaster.php">
<head>....

Please Help me and us (php developers).

I’m using: PG 4.8 on Linux Mint LMDE 2 Cinnamon 64-bit, Apache2, PHP 5.6.36