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
|
@@ 153-156 (lines=4) @@
|
| 150 |
|
$max = (int)$args['param']; |
| 151 |
|
$this->container->logger->debug("param: ".$max); |
| 152 |
|
|
| 153 |
|
for($i = 0; $i < $max; $i++) { |
| 154 |
|
$item['name'] = "Item $i"; |
| 155 |
|
$items[] = $item; |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
$themeData['page'] = [ |
| 159 |
|
'title' => "Grid Example", |