Admin_controller
<?php
class Admin_controller extends CI_Controller{
    function __construct()
    {
        parent::__construct();
        $this->load->model("Adminmodel","",true);
        
        protected $headerview = 'headerview';
        protected function render($content) { 
            //$view_data = array( 'content' => $content);
            $this->load->view($this->headerview);
        }
     }
}
?>
I want to access my headerview.php in all pages of application so that I have created like above but it showing error like  Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in C:\xampp\htdocs\ci3\application\controllers\admin\Admin_controller.php.
How to solve this?
 
     
     
    