I have a main file index.php into which iam loading myinnerpage.php . I have defined a variable inside index.php & checks it on myinnerpage.php , but when i load innerpage it shows restricted access, any idea why? following is my code.
index.php
and now in the myiinerpage.php which is in the folder myfolder i have the following code.
but when i click on the link it shows restricted access. I have loaded jquery too, any idea y this is happening?
index.php
Code:
<?php
define( '_JEXEC', true );
?>
<div class="mypage">
</div>
<ul>
<li><a href="#" onclick="loadpages('myiinerpage.php')">about page</a></li>
</ul>
<script type="text/javascript">
var $jq = jQuery.noConflict();
function loadpages(page)
{
$jq('.mypage').load('myfolder/'+page);
}
</script>
Code:
<?php
defined('_JEXEC') or die('Restricted access');
?>
<div>
my page elements
</div>
but when i click on the link it shows restricted access. I have loaded jquery too, any idea y this is happening?
Comment