I checked this on my Xampp (Linux) installation, no problem here. I slightly changed that code and declared an empty class right_model for correct syntax:
- Code: Select all
<?php
class right_model {};
?>
<!--begin right menu--> 1ST INSTANCE
<h3>Groups</h3>
<ul class="ulclass">
<li class="liclass"><a href="index.php?page=about"><img src ="assets/img/frnd.png"/> Friends</a></li>
<div class="col_12">
<!-- <?php $right_model = new right_model;?> --> SECOND INSTANCE FAILS
<h3>Archives</h3> EVERYTHIBNG AFTER THIS COMMENT OUT DIES
<ul class="ulclass">
When running this document (test.php) in my Apache, this is the generated HTML source i get:
- Code: Select all
<!--begin right menu--> 1ST INSTANCE
<h3>Groups</h3>
<ul class="ulclass">
<li class="liclass"><a href="index.php?page=about"><img src ="assets/img/frnd.png"/> Friends</a></li>
<div class="col_12">
<!-- --> SECOND INSTANCE FAILS
<h3>Archives</h3> EVERYTHIBNG AFTER THIS COMMENT OUT DIES
<ul class="ulclass">
Everything is ok.