CakeDC/comments — Issue #31: TreeHelper code not updated for 2.0
Author: phredeye
Created: 2012-01-21 02:00:40+00:00
State: open

TreeHelper in 2.0 branch attempts to get the current View object from a deprecated API by using:

$view =& ClassRegistry::GetObject('view');

https://github.com/CakeDC/comments/blob/2.0/View/Helper/TreeHelper.php#L122

This throws exceptions when you try to use the comment plugin in cake 2.0

`Fatal error: Call to a member function element() on a non-object in /plugins/Comments/View/Helper/TreeHelper.php on line 214`

https://github.com/CakeDC/comments/blob/2.0/View/Helper/TreeHelper.php#L214