Understanding how controller methods work in bolt
Posted: Wed Nov 23, 2016 1:43 pm
Hey guys i just need to understand the below line of code :
From the above lines of code what does the below line of code really do:
??
If i check the docs here https://docs.bolt.cm/2.2/templates/temp ... ting-entry
it says the following:
Code: Select all
preview:
path: /preview/{contenttypeslug}
defaults:
_controller: controller.frontend:preview
requirements:
contenttypeslug: controller.requirement:anyContentType
Code: Select all
defaults:
_controller: controller.frontend:preview
If i check the docs here https://docs.bolt.cm/2.2/templates/temp ... ting-entry
it says the following:
But i still don't quite understand this line of code , where is this method exactly and when will it be called ??controller method which will be called when this route matches.