Can not use localization on form validation rules |
We have a set of rules like below:
PHP Code: public $rules = array( where we would like to replace the 'label' => 'Email' with $this->lang->line('user_email') However it produces the following error: Message: Constant expression contains invalid operations Are we doing something wrong?
You can't use variables inside class variables. You will need to assign $rules, from within your __construct().
|
Welcome Guest, Not a member yet? Register Sign In |