Working with Tree data (MPTT)

By Andy, filed under CakePHP, Tools, MPTT

In the past week, a lot happened to this site, and not all of it was good :). Where to begin... the development machine died (hopefully get it back today); I moved all the code from a backup onto my aging laptop, my previous host account expired; I changed hosts to Dreamhost, the update from my laptop to the live version included some code that doesn't work/isn't finished; I...

read more11 comments

  • How to delete an MPTT Node

    By Andy, filed under CakePHP, Tools, ACL, Tips, MPTT, Hacks, SQL

    If you use MPTT tables anywhere (The cake acl system uses it) you may have found that when you delete an entry, the lft and rght fields for the neighouring nodes don't get updated. This may have rather dire concequences ;)

    There is an open ticket for how to delete from the cake acl tables, but as it is potentially quite generic, I thought I'd include the (potential)...

    read more1 comment

«  »