Concrete5 Load Area with Ajax
Permalink
I am trying to pull area of a page with Ajax. In JS I have on click I pass href to PHP; in PHP(located in tools):
If I make:
I receive the page so everything working, But when I try to receive an Area I get this error:
In this File I found this
So as I understand $c is null that why I have this error how can I fix this??
If I make:
echo json_encode($page);
I receive the page so everything working, But when I try to receive an Area I get this error:
concrete\elements\block_area_header_view.php on line 5
In this File I found this
$c = Page::getCurrentPage(); $areaStyle = $c->getAreaCustomStyleRule($a);
So as I understand $c is null that why I have this error how can I fix this??
a) Global Areas addon and Blocks by AJAX addon
b) Universal Content Puller addon and Blocks By AJAX addon