I am working on a fairly complex single page to show a whole sub-tree of legacy content. This content is controlled by the path below the single page, as split into parameters by C5.
eg.
For:www.www.mydomain.com/path/to/singlepage/p1/p2/p3/p4...
The single page controller view function is
function view($p1,$p2,$p3,$p4){...}
This is all working nicely as a single page, but I also want to code some new types of block, which when added to areas on the single page, will adapt their behaviour based on the same parameters (P1...P4). The intent is to provide some later flexibility on how the single page presents the legacy content without having to edit code in the single page, and also to allow the same blocks to be used elsewhere on the site (though without the adaptive behaviour they would have on the single page).
I have tried putting a similar 'function view($p1,$p2,$p3,$p4)' in the the block controller, but it is obviously not receiving the parameters.
The hack solution would be to grab the original path and slice it up, as C5 does in the core dispatcher & controller, but...
Is there any clean way to get at these parameters, as already extracted by C5, from a block within a single page?