title: How to show message on view in codeigniter?
body: <p>i want to show the success message of a content update on a redirect link.here is my code of controller:-</p>
  
  <pre><code>public function add_content()
          {
          $this-&gt;load-&gt;helper('url');
      $id=$this-&gt;input-&gt;post('id');
          $content=$this-&gt;input-&gt;post('content');
          $title=$this-&gt;input-&gt;post('title');
          $this-&gt;load-&gt;model('admin/contentmodel');
      $status=$this-&gt;contentmodel-&gt;addcontent($id,$title,$content);
          if($status==1)
             {
              $this-&gt;session-&gt;set_flashdata("message","&lt;font class='success'&gt;Content Successfully Updated..!!&lt;/font&gt;");
              redirect('admin/login/dash');
              }
          else
            {
             $this-&gt;session-&gt;set_flashdata("message","&lt;font class='success'&gt;Content Not Updated..!!&lt;/font&gt;");
             redirect('admin/content/home');
            }
          }
  </code></pre>
  
  <p>my content is updated successfully and now i want to show the message to user on a particular redirect link.for that i set the message in above code:</p>
  
  <pre><code>$this-&gt;session-&gt;set_flashdata("message","&lt;font class='success'&gt;Content Successfully Updated..!!&lt;/font&gt;");
  </code></pre>
  
  <p>so can you guys please let me know where i am going wrong and how can i show the error message on view?while my redirect goes to the controller ->than on view.so how can i flow my error MSG from controller->view.Thanks in advance.</p>