Skip to content

CakePHP 2.x: TreeBehavior

Choose a tag to compare

@dereuromark dereuromark released this 14 May 18:25

The TreeBehavior of 3.x has been shimmed.
generateTreeList(), children() and getPath() will not be existent anymore.

You can now use the custom finders of 3.x in your 2.x app:

  • find('treeList')
  • find('path')
  • find('children')

That includes the options that will now be the 2nd argument instead of a long list of arguments.

Note that the TreeBehavior has still to be loaded for the Model to be able to use those finders.