CakePHP Get Field Totals After Search Plugin Filtering
问题 I am trying to get the field totals for all results after filtering with the CakeDC search plugin. In my model I have: public function getFieldAmountTotal( $fieldNames){ // Can't use recursive -1 because it includes current filtering // This will only grab the total by id // Can't not pull id because filtering on related tables //$totalAmounts = $this->find( 'all', array('fields' => $fieldNames)); $totalAmounts = $this->find( 'all', array('fields' => $fieldNames, 'group' => 'MovieStar.id'));