In my singlepage report, setup section I have this
//preceding setup function, at top of class
public $val;
// within setup function
$this->src('config')
->query(/* some query that correctly returns 7 rows of 2 columns within phpmyadmin */ ")
->pipe($this->dataStore("checks"));
$this->val = sizeof( $this->dataStore("checks")->toArray() );
//within html I have an H1 with <?php echo $report->val; ?>
A zero shows up in the H1 rather than 7. Please note dataStore("checks") is correctly showing 7 items in a ChartCard. The above is just a trouble-shooting step I took.
This question is related to this: basically I am looking for an alternative to get a value since pop() removes it from the dataStore. Nevertheless, I need to know why above code is not returning an array.