null block(int $location, string $route, Closure $callback)
Requires: phpFox 4.3+
Creates a block in specific locations and routes.
Block location number.
Route to place the block.
Callback function that will be executed when the block is to be loaded.
Blocks are not required to be included in a route and is no longer the advised way to create a block. While old methods are still supported in 4.3, they will be depreciated in the future. The change in how blocks work in 4.3 is to give clients the ability to re-position your blocks from the AdminCP.
If you use an HTML view via the view() function you must prefix the HTML with your apps ID (e.g. @Sample/)
Identifying Route Names
Finding the name of a route can be hard at times, enable Techie Mode to make things easier.