View difference between Paste ID: 3GUbzF0x and XswNsnNF
SHOW: | | - or go back to the newest paste.
1
class BasePresenter extends Nette\Application\UI\Presenter
2
{
3
	
4
	protected $section;
5
	protected $parser;
6
	protected $io;
7
8
	public function __construct(
9
		CleverDic\Model\Sections $section, 
10
		CleverDic\Model\Parser $parser, 
11
		CleverDic\Model\IO $io, 
12
		Nette\DI\Container $container
13
	)
14
	{
15
		parent::__construct($container);
16
		
17
		$this->section = $section;
18
		$this->parser = $parser;
19
		$this->io = $io;
20
21-
	}
21+
	}
22
23
...
24
25
HomepagePresenter.php
26
27
class HomepagePresenter extends BasePresenter
28
{
29
     	public function renderDefault()
30
	{
31
		$this->template->section = $this->section->getName();
32
...