debugging - yii debug rendering branch -


How can I view all the view file names that were provided for the current page?

There is no information about loading files during the page generation in Debug Console.

There is no native solution for this, but it can be completed in some way.

I think the easiest way is to override the seavuendurer class and keep a list of files that the renderfile is called together. The issue of overriding the class is

  'viewRenderer' => Part of the components in your configuration in the array ('square' = & gt; 'MyViewRenderer',),   

.

This can be seen in its simplest form:

  class MyViewRenderer extends CViewRenderer {public function renderfile ($ reference, $ sourceFile, $ data, $ return) {Resonance "rendering" $ source file PHP_EOL; Return Parent :: Render File ($ context, $ sourcefile, $ data, $ return)}}    

Comments