Skip to content

Instantly share code, notes, and snippets.

@fprochazka
Created November 5, 2012 13:43
Show Gist options
  • Select an option

  • Save fprochazka/4017249 to your computer and use it in GitHub Desktop.

Select an option

Save fprochazka/4017249 to your computer and use it in GitHub Desktop.
{extends @outer.layout.latte}
{#body}
<div class="content">
{include #content}
</div>
<html>
<head>
</head>
<body>
{include #body}
</body>
<html>
{extends @outer.layout.latte}
{#body}
<div class="sidebar">
...
</div>
<div class="content">
{include #content}
</div>
<?php
class BasePresenter extends Nette\Application\UI\Presenter
{
protected function beforeRender()
{
parent::beforeRender();
$this->layout = 'default.layout';
}
}
<?php
class FooPresenter extends BasePresenter
{
protected function beforeRender()
{
parent::beforeRender();
$this->layout = 'sidebar.layout';
}
}
@Solution

Solution commented Nov 5, 2012

Copy link
Copy Markdown

Point?:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment