How to get the View Header and Footer in Custom Module? I've made a custom view and display for it like this:


How do I get the Views Header (Global Summary here) ? I'm able to get the Views title  like this:

$views = Views::getView('items_list','page_2');
$views-&gt;setOffset($page_id);
$views-&gt;execute();
$view_results = $views-&gt;result;
print_r( $views-&gt;getTitle());exit;


Hope someone could help me out.
Step1 - You will create two files header.php and footer.php.
Step2 - Create a folder "include" in your theme directory.
Step3 - Suppose that your theme directory is "abc" sites/all/themes/abc. Put header.php and footer.php file in "sites/all/themes/abc/include" theme folder.
Step3 - By using html and php you can write code in header.php and footer.php.
Step4 - Now you can include both files in page.tpl.php in header area and footer area like PHP.

  include_once($theme_path.'/include/header.php');  
  include_once($theme_path.'/include/footer.php');  


hope this will help