BannerController.php 854 Bytes
Newer Older
1
<?php
Sven Burkert's avatar
Sven Burkert committed
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace T3o\Randombanners\Controller;

/*
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * The TYPO3 project - inspiring people to share!
15
16
 */

Sven Burkert's avatar
Sven Burkert committed
17
class BannerController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
18

Sven Burkert's avatar
Sven Burkert committed
19
20
21
22
23
    /**
     * @var \T3o\Randombanners\Domain\Repository\BannerRepository
     * @inject
     */
    protected $bannerRepository;
24
25
26
27
28

	/**
	 * @return void
	 */
	public function indexAction() {
29
30
        $banners = $this->bannerRepository->findAll();
        $this->view->assign('banners', $banners);
31
	}
Sven Burkert's avatar
Sven Burkert committed
32
}