Answer the question
In order to leave comments, you need to log in
How to access an array property in the beforeSave method in yii?
Good afternoon, such a problem:
in actionBeforeSave I do print_r($_POST) , it comes out:
Array
(
[Product] => Array
(
[NAME] => cookie
[params] => Array
(
[0] => 2
[1] => 3
[2] => 4
[3] => 5
[4] => 6
)
)
[yt0] => Create
)
BUT when I try to do print_r($this->params), then the output is an empty array, tell me how humanly you can refer to this property of the class.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question