app/controllers/Grid.php 1 location
|
@@ 26-29 (lines=4) @@
|
| 23 |
|
]; |
| 24 |
|
|
| 25 |
|
$items = array(); |
| 26 |
|
for($i = 0; $i < $args['count']; $i++) { |
| 27 |
|
$item['name'] = "Item $i"; |
| 28 |
|
$items[] = $item; |
| 29 |
|
} |
| 30 |
|
$config['items'] = $items; |
| 31 |
|
|
| 32 |
|
return $this->container->theme->render($response, $view, $config); |
app/controllers/Examples.php 1 location
|
@@ 166-169 (lines=4) @@
|
| 163 |
|
$max = (int)$args['param']; |
| 164 |
|
$this->container->logger->debug("param: ".$max); |
| 165 |
|
|
| 166 |
|
for($i = 0; $i < $max; $i++) { |
| 167 |
|
$item['name'] = "Item $i"; |
| 168 |
|
$items[] = $item; |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$themeData['page'] = [ |
| 172 |
|
'title' => "Grid Example", |