Skip to content

Instantly share code, notes, and snippets.

@tomasbedrich
Last active August 29, 2016 18:37
Show Gist options
  • Save tomasbedrich/c0a90b153048127c4f918887eb176acd to your computer and use it in GitHub Desktop.
Save tomasbedrich/c0a90b153048127c4f918887eb176acd to your computer and use it in GitHub Desktop.
Render single Nette component
<?php
$container = require __DIR__ . '/../app/bootstrap.php';
$app = $container->getByType('Nette\Application\Application');
$p = $app->getPresenterFactory()->createPresenter('Base');
$p->run($app->createInitialRequest());
$p['header']->render();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment