I want to customize the admin generator template with the number of filters that are currently applied if any. Is there a way to get this easily from the generated filter form? The code below works but I was wondering if there was a better way.
$cx = 0; foreach($form->getDefaults() as $default){ if(is_array($default)){ foreach($default as $value){ if($value != ''){ $cx++; break; } } }else{ if($default != ''){ $cx++; } } } Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---