2011-08-22 110 views
0

我嘗試提取的Zend_Filter_Input所有過濾領域,以增加額外的字段,並把它傳遞給模型插入或更新,但我迷路與提取物片:的Zend_Filter_Input - 獲取過濾值陣列

$filters = Array( '*'   => Array('StripTags', 'StringTrim')); 

$data = new Zend_Filter_Input($filters, Array(), $this->_request->getParams()); 
// line below does't work what I should use instead ? 
$data = $data->toArray(); 

foreach ($extra_fields as $key => $value) { 
    $data [ $key ] = $value; 
} // FOREACH 

我只是想將所有過濾的字段作爲值對的數組。

回答