Good Day,
I have a problem in getting the value of the element of an array parameter i have declared in params.php
here is what i have in params.php in config folder
<?php
return array(
'gender'=>array(
'1'=>'Male',
'2'=>'Female'
);
and when i try to echo the value of it, it does not display anything.
here is what i have in my view
<?php echo Yii::app()->params['gender[1]']; ?>
Does anyone know how to do this?
Thanks!