Generate pledge council index.
This commit is contained in:
@@ -22,7 +22,16 @@ $pledgeCandidates = array_filter($candidate_data, function ($candidate) {
|
||||
$renderer = new SPLPageRenderer();
|
||||
//print_r($pledgeCandidates);
|
||||
|
||||
$pageContent = $renderer->renderPledgePage($councilData, $candidateData, $mediaData);
|
||||
$councils = [];
|
||||
foreach ($pledgeCandidates as $key => $candidate) {
|
||||
$councils[] = $candidate['Council'];
|
||||
}
|
||||
$councils = array_unique($councils);
|
||||
asort($councils);
|
||||
|
||||
//print_r($councils);
|
||||
|
||||
$pageContent = $renderer->renderPledgePage($councils, $pledgeCandidates);
|
||||
|
||||
if ($pageContent === null) {
|
||||
exit(2);
|
||||
|
||||
Reference in New Issue
Block a user