I am new and I do not have much idea of the use of Codeigniter . The case Do you know if there is any way to return a comment (error) to a view, from the controller, once having made a query of a model ?. That is:
Index() ) login() uses a return of a query received from the model. if() . if($error=true){ Here I want you to load the same view of the same form and send you a $ data with a message.
And it does not work for me to do $this->load->viene('login', $data)