Namespace generated twice (v2021)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mobhar
User
Posts: 11702

Namespace generated twice (v2021)

Post by mobhar »

In each generated custom files (for example: home.php), we see namespace is generated twice as follows:

<?php namespace PHPMaker2021\demo2021; ?>
<?php

namespace PHPMaker2021\demo2021;

// Page object
$Home = &$Page;
?>
<div class="card">
...

Shouldn't it be generated once? What's the reason it is generated twice?

Webmaster
User
Posts: 9427

Post by Webmaster »

Thank you for reporting. Please update to the latest template (Tools -> Update Template) and try again.

mobhar
User
Posts: 11702

Post by mobhar »

Thank you. After updating template, now it works properly.

Post Reply