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