| @@ 50-59 (lines=10) @@ | ||
| 47 | * |
|
| 48 | * @return void |
|
| 49 | */ |
|
| 50 | public function listAction() |
|
| 51 | {
|
|
| 52 | $all = $this->blog->findAll(); |
|
| 53 | ||
| 54 | $this->theme->setTitle("List all posts");
|
|
| 55 | $this->views->add('blog/list', [
|
|
| 56 | 'posts' => $all, |
|
| 57 | 'title' => "All blogposts", |
|
| 58 | ]); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * View blogpost with slug. |
|
| @@ 45-54 (lines=10) @@ | ||
| 42 | * |
|
| 43 | * @return void |
|
| 44 | */ |
|
| 45 | public function listAction() |
|
| 46 | {
|
|
| 47 | $all = $this->page->findAll(); |
|
| 48 | ||
| 49 | $this->theme->setTitle("List all pages");
|
|
| 50 | $this->views->add('page/list', [
|
|
| 51 | 'pages' => $all, |
|
| 52 | 'title' => "Editable pages", |
|
| 53 | ]); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * Views page with with slug. |
|