Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function index() {
- App::uses('Clinic', 'Model');
- Clinic::$current=5;
- $this->Paginator->settings = array(
- 'conditions' => array(
- 'Provider.clinic_id' => Clinic::$current,),
- 'order' => array('Provider.name' => 'DESC'),
- 'contain' => array(
- 'City',
- 'Clinic',
- 'CreatedBy', 'UpdatedBy')
- );
- $this->Prg->commonProcess();
- $this->Paginator->settings['conditions'] = $this->Provider->parseCriteria($this->Prg->parsedParams());
- $providers = $this->paginate();
- // debug(Clinic::$current);
- // debug($providers);exit();
- $this->set(compact('providers'));
- $this->pdfConfig = array(
- 'filename' => __('listado-proveedores') . '.pdf',
- );
- $this->setList();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement