OK, the title is weird, sorry for that.
On a snippet I create a navigation stuff using
<?php if ($page->hasPrev()) : ?> <span><?= $page->prev()->titre() ?></span> ...
There is a controller associated to the page, let’s name it
painting. In this controller I computed a parameter named
Problem is I don’t have access to these
titre data. The line involved is
$page->prev()->titre() and it seem the
$page->prev() have not the
painting controller applied on it.
I am pretty sure I am missing something really simple.
By the way, there is an error on the following cookbook’ page as the link to the dedicated controller’s documentation leads to an error.