function beforeFilter() { // If the auth component is loaded, we'll make sure to add cpamf to the exclude list if (isset($this->Auth)) { $this->Auth->allowedActions = array('index', 'gateway', 'browser'); } parent::beforeFilter(); }
/** * Get the list of services * @returns An array of array ready to be bound to a Tree */ function beforeFilter() { parent::beforeFilter(); if (Configure::read('Cpamf.serviceBrowserEnabled') == 0) { $this->cakeError('error404'); } // If the auth component is loaded, we'll make sure to add cpamf to the exclude list if (isset($this->Auth)) { $this->Auth->allowedActions = array('getServices', 'describeService', 'listTemplates'); } App::import('Vendor', 'Cpamf.amfphp' . DS . 'core' . DS . 'cakeamf' . DS . 'util', array('file' => 'CakeMethodTable.php')); }