Welcome Guest, Not a member yet? Register   Sign In
how i can use validation_errors() in the controller ?
#1

[eluser]Fahad Alrahbi[/eluser]
Hello ,


i am using Smarty template engine with CI and i want to use validation_errors() inside Controller is it possible ? i want it like this


$error[]=validation_errors();

and in the template i will use {section} or {foreach}

Sorry for asking so many questions :red:
#2

[eluser]rogierb[/eluser]
you can use $this->form_validation->error_string(). The validation_errors() functions is just a wrapper.




Theme © iAndrew 2016 - Forum software by © MyBB