I'm implementing a html
of a system using the php and I'm also making a call on ajax
to open any page, but when it returns my url
, it does not read the include
of the page.
Example:
The html page: 'test.php'
<?php include('inc_header.php'); ?>
<section class="content">
</section>
<?php include('inc_rodape.php'); ?>
The call I made was this:
$.ajax({
url: "teste.php",
context: document.body,
dataType: 'html',
success: function(openHtml){
$('.content').html(openHtml);
}
});
The page teste.php
opens normal, but does not read the top. This class .content
is an effect that does before opening the page teste.php
, this part is working correctly, only this include
header that does not work.
What would be the solution to this problem?