Well, this may be a silly question, but since I'm very new to codeigniter, I have no idea how to do this.
What I want to do is, display my custom errors messages whenever I want(such as login failed, Post Successfully published...etc.) in the front end (On login-form-view, write-post-view...etc.).
Earlier, when I was using just PHP (no frameworks), I stored those messages in a $_SESSION global variable and echo them in the front end pages. But here, I hope CodeIgniter comes with a better solution.
codeigniteryou can use$this->session->set_flashdata('success','Your message')for success and replacesuccesswithfailurethat's it - Narendrasingh Sisodia