Zabs
Zabs

Reputation: 14142

Get multidimensional post array via Yii getPost function

If i have a $_POST array as follows:

$_POST['request']['type']['user'] = 'abc';

How would I access this same variable using the Yii::app()->request->getPost() functionality built into Yii 1.x

Upvotes: 0

Views: 429

Answers (1)

Zabs
Zabs

Reputation: 14142

Sussed it..

Yii::app()->request->getPost('request');
echo $request['type']['user'];

Upvotes: 1

Related Questions