/**
  * Fetch and prepare profiles for view
  */
 public function prepareProfiles($type, $filters = false)
 {
     $Profiles = new Application_Model_Profiles();
     $count = $Profiles->searchProfiles($this->search_term, $filters, $type, true);
     $this->view->pagination_last_page = (int) ceil($count / (int) Zend_Registry::get('config')->get('pagination_limit'));
     $this->view->pagination_current_page = $this->page;
     $Profiles->page_number = $this->page;
     if ($count > 0) {
         $this->view->profiles = $Profiles->searchProfiles($this->search_term, $filters, $type);
     } else {
         Application_Plugin_Alerts::info($this->view->translate('Nothing found...'), 'off');
     }
     // set single view script
     $this->render('profiles');
 }