CodeIgniter : A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object
<p>i need your help to solved my problem. i get message</p>

<blockquote>
  <p>A PHP Error was encountered Severity: Notice Message: Trying to get
  property of non-object Filename: controllers/HLS.php Line Number: 16</p>
  
  <p>A PHP Error was encountered Severity: Notice Message: Trying to get
  property of non-object Filename: controllers/HLS.php Line Number: 17</p>
  
  <p>A PHP Error was encountered Severity: Notice Message: Trying to get
  property of non-object Filename: controllers/HLS.php Line Number: 18</p>
  
  <p>A PHP Error was encountered Severity: Notice Message: Trying to get
  property of non-object Filename: controllers/HLS.php Line Number: 20</p>
</blockquote>

<p>Here is my controllers/HLS</p>

<pre><code>function index(){
    // get seo
    $data_meta = $this-&gt;Db_model-&gt;getdata_page('HLS');
    $ary_field = $data_meta-&gt;row();
    $data["seo_metatitle"] = $ary_field-&gt;pg_metatitle;
    $data["seo_metadesc"] = $ary_field-&gt;pg_metadesc;
    $data["seo_metakey"] = $ary_field-&gt;pg_metakey; 
    $data["data_javascript"] = "&lt;script src=\"".$this-&gt;config-&gt;item('base_url')."asset/js/valform.js\" type=\"text/javascript\"&gt;&lt;/script&gt;";
    $data["main_content"] = $ary_field-&gt;pg_description;
    $data["file_menutop"] = $this-&gt;load-&gt;view('menu_top', '', true); // load top menu on file

    // generate html document
    $this-&gt;load-&gt;view('header_idx', $data);
    list($productgroup_left, $productgroup_right) = $this-&gt;Db_model-&gt;generatemenugroup();
    $data = array(
        'sideleft_top' =&gt; $this-&gt;load-&gt;view('sideleft_top', '', true),
        'sideleft_productgroup' =&gt; $productgroup_left,
        'sideleft_bottom' =&gt; $this-&gt;load-&gt;view('sideleft_bottom', '', true),
        'sideright_top' =&gt; $this-&gt;load-&gt;view('sideright_top', '', true),
        'sideright_productgroup' =&gt; $productgroup_right,
        'sideright_bottom' =&gt; $this-&gt;load-&gt;view('sideright_bottom', '', true),
        'sidemain_bottom' =&gt; $this-&gt;load-&gt;view('sidemain_bottom', '', true),
        'sidebottom' =&gt; $this-&gt;load-&gt;view('sidebottom', '', true)
    );
    $this-&gt;parser-&gt;parse('hotel_link', $data);
    $this-&gt;load-&gt;view('footer');
}

function check(){
    // get seo
    $data_meta = $this-&gt;Db_model-&gt;getdata_page('HLS');
    $ary_field = $data_meta-&gt;row();
    $data["seo_metatitle"] = $ary_field-&gt;pg_metatitle;
    $data["seo_metadesc"] = $ary_field-&gt;pg_metadesc;
    $data["seo_metakey"] = $ary_field-&gt;pg_metakey;
    $data["data_javascript"] = "&lt;script src=\"".$this-&gt;config-&gt;item('base_url')."asset/js/valform.js\" type=\"text/javascript\"&gt;&lt;/script&gt;";
    $data["main_content"] = $ary_field-&gt;pg_description;

    $data["file_menutop"] = $this-&gt;load-&gt;view('menu_top', '', true); // load top menu on file

    // generate html document
    $this-&gt;load-&gt;view('header_idx', $data);
    list($productgroup_left, $productgroup_right) = $this-&gt;Db_model-&gt;generatemenugroup();
    $data = array(
        'sideleft_top' =&gt; $this-&gt;load-&gt;view('sideleft_top', '', true),
        'sideleft_productgroup' =&gt; $productgroup_left,
        'sideleft_bottom' =&gt; $this-&gt;load-&gt;view('sideleft_bottom', '', true),
        'sideright_top' =&gt; $this-&gt;load-&gt;view('sideright_top', '', true),
        'sideright_productgroup' =&gt; $productgroup_right,
        'sideright_bottom' =&gt; $this-&gt;load-&gt;view('sideright_bottom', '', true),
        'sidemain_bottom' =&gt; $this-&gt;load-&gt;view('sidemain_bottom', '', true),
        'sidebottom' =&gt; $this-&gt;load-&gt;view('sidebottom', '', true)
    );
    $this-&gt;parser-&gt;parse('hotel_link', $data);
    $this-&gt;load-&gt;view('footer');
}
?&gt;
</code></pre>
