SilverStripe: How to debug scope of template function call

From FVue
Jump to: navigation, search

Problem

Within a template a controller method is not being called - without any error message :-(. How can I find out on which object the method is being looked for.

Environment

  • SilverStripe-2.4.5

Solution

Add to the url (within the development environment):

debug_profile=2

This will show a profiler window with information about which methods are being called on which object classes. Now it's easy to see where your assumptions may be wrong; the profiler displays the scope in which the method is looked for.

Comments

blog comments powered by Disqus