Welcome Guest, Not a member yet? Register   Sign In
using validation_errors() inside controller?
#2

[eluser]crikey[/eluser]
Could you just make a view that outputs the errors using validation_errors(), load the view into a variable in your controller, and echo the variable?

A bit of a roundabout way, but at least it keeps your output separate from your controller logic.


Messages In This Thread
using validation_errors() inside controller? - by El Forum - 11-22-2010, 11:54 AM
using validation_errors() inside controller? - by El Forum - 11-22-2010, 04:36 PM
using validation_errors() inside controller? - by El Forum - 11-30-2010, 01:33 PM
using validation_errors() inside controller? - by El Forum - 11-30-2010, 07:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB