Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save simkimsia/ba916faeb1a62edfeee3 to your computer and use it in GitHub Desktop.

Select an option

Save simkimsia/ba916faeb1a62edfeee3 to your computer and use it in GitHub Desktop.
Gotchas and alerts for those migrating from CakePHP 2 to CakePHP 3

AuthComponent

Cake2

$this->Auth->allow('add', 'index');

Note the lack of array.

Cake3

$this->Auth->allow(['add', 'index']);

Note the array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment