silverstripe / silverstripe-widgets

Widgets subsystem for Silverstripe CMS
http://silverstripe.org
BSD 3-Clause "New" or "Revised" License
38 stars 55 forks source link

Making widgets able to be used in a non page controller #105

Closed pitchandtone closed 9 years ago

pitchandtone commented 9 years ago

Cycles up the controller stack until it finds a non-widget controller This is needed because Controller::curr returns the widget controller, which means any Link function turns into endless loop.