Hello there
I am aware of showtemplate variable which shows you the compiled template and their names. In you download any older version silverstripe or using old version you will find that when using debug_request=1, It shows all steps of the request from initial HTTPRequest to Controller to Template Rendering.
For example for URL http://localhost/silverstripe-v2.4.5/?debug_request=1 you get following result
Debug (line 119 of RequestHandler.php): Testing 'widget/$ID/$Action' with '' on Page_Controller
Debug (line 119 of RequestHandler.php): Testing 'widget/$ID/$Action' with '' on Page_Controller
Debug (line 119 of RequestHandler.php): Testing '$Action//$ID/$OtherID' with '' on Page_Controller
Debug (line 128 of RequestHandler.php): Rule '$Action//$ID/$OtherID' matched to action 'handleAction' on Page_Controller. Latest request params: array (
'Action' => NULL,
'ID' => NULL,
'OtherID' => NULL,
)
Debug (line 167 of SSViewer.php): Selecting templates from the following list: Page, ContentController
Debug (line 181 of SSViewer.php): Found template 'Page' from main theme 'blackcandy': array (
'Layout' => '/var/www/silverstripe-v2.4.5/themes/blackcandy/templates/Layout/Page.ss',
'main' => '/var/www/silverstripe-v2.4.5/themes/blackcandy/templates/Page.ss',
)
Debug (line 191 of SSViewer.php): Found template 'ContentController' from main template archive, containing the following items: array (
'main' => '/var/www/silverstripe-v2.4.5/sapphire/templates/ContentController.ss',
)
Debug (line 202 of SSViewer.php): Final template selections made: array (
'main' => '/var/www/silverstripe-v2.4.5/themes/blackcandy/templates/Page.ss',
'Layout' => '/var/www/silverstripe-v2.4.5/themes/blackcandy/templates/Layout/Page.ss',
)
So you can see names of templates system is calling for rendering.
Now If you do the same thing in new Silverstripe version 3 for URL http://localhost/ss-cms/?debug_request=1 It does not show templates selected for compilation.
Following is the response i get.
Debug (line 250 of RequestHandler.php): Testing '$Action//$ID/$OtherID' with '' on HomePage_Controller
Debug (line 258 of RequestHandler.php): Rule '$Action//$ID/$OtherID' matched to action 'handleAction' on HomePage_Controller. Latest request params: array ( 'Action' => NULL, 'ID' => NULL, 'OtherID' => NULL, )
Debug (line 184 of RequestHandler.php): Action not set; using default action method name 'index'
I am not sure If have to mentioned something extra in configuration file.
Posted to: debug_request=1 not showing template names | Show Thread | Post Reply