Welcome Guest, Not a member yet? Register   Sign In
rules validation variables definition
#1

[eluser]Cristian Gilè[/eluser]
Hi guys,

in my project there is a controller to validate form using CI validation library.
The controller has several rules and different methods.
I was wondering what is the best way to define the rules
variables so that all methods can access them.

Is it a good idea defining the rules at class level and initializing them
in the constructor?


greetings,

Cristian




Theme © iAndrew 2016 - Forum software by © MyBB