class UsersController extends AppController { var $name = 'Users'; var $helpers = array('Html', 'Form'); var $components = array('SecureGet'); function beforeFilter() { $this->SecureGet->secureActions('edit'); } function edit($id, $type) { /* rest of the code here */ } }