I'm trying to send some values to the view (layout + partials) using this code (all of these variables have 1 as value).
$this->layout()->setVariables(array(
'nbTotalLignes' => $nbTotalLignes,
'nbTotalPages' => $nbTotalPages,
'comptes' => $comptes,
'numPageCourante' => $numPageCourante,
'nbComptesAffiches' => $nbComptesAffiches,
'comptesAffiches' => $comptesAffiches,
));
But when I try to display these in the view using this code echo (isset($this->nbTotalLignes)?1:0
, I get 0
. How do I please to fix that ?