/** * Scaffold * * @var mixed */ public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('add', 'edit', 'index'); // Letting users register themselves, for now }
public function beforeFilter() { parent::beforeFilter(); $this->Accreditation->bindModel(array('hasOne' => array('Event' => array('foreignKey' => false, 'conditions' => array('Accreditation.event_id = Event.id')), 'AccreditationType' => array('foreignKey' => false, 'conditions' => array('Accreditation.accreditation_type_id = AccreditationType.id'))))); }
public function beforeFilter() { parent::beforeFilter(); //$this->Auth->allow('display'); }