Notice Undefined variable: _control
- vosy
- Člen | 532
ahoj, chtel bych v presenteru vygenerovat htmlkod z FileTemplate() a prez promenou ho vlozit do .latte
v presenteru mam
$template = new FileTemplate();
$template->registerHelperLoader('\Nette\Templating\Helpers::loader');
$template->registerFilter(new \Nette\Latte\Engine);
.....
.....
.....
$template->setFile(dirname(__FILE__).'/../templates/Homepage/Vyhledavani/Letenky/jakNaTo.latte');
$this->presenter->template->jakNaToTab = $template;
v latte tohoto presenteru mam
{snippet jakNaTo}
{!$jakNaToTab}
{snippet}
vysledek
Notice
Undefined variable: _control
if (!function_exists($_l->blocks[‚_jakNaTo‘][] =
‚_lb1353c76571__jakNaTo‘)) { function _lb1353c76571__jakNaTo($_l, $_args) {
extract($_args); $_control->validateControl(‚jakNaTo‘)
52: ?> <?php echo Nette\Templating\Helpers::escapeHtml($jakNaToTab,
ENT_NOQUOTES) ?>
v jakNaTo.latte chci dosilit toho aby fungovalo generovani url <a n:href=„JakNaTo:JakObjednat“
Editoval vosy (26. 11. 2013 23:28)
- HappyFace
- Člen | 162
taka nesmela otazka, a macro {include} by ti nestacilo/nepomohlo?
https://latte.nette.org/cs/tags#…
V podstate ty len zoberies templetu a vlozis si(includnes) ju niekam do
sablony.