Nette\Application\Application::getPresenterFactory PHP Method

getPresenterFactory() public method

Returns presenter factory.
public getPresenterFactory ( ) : Nette\Application\IPresenterFactory
return Nette\Application\IPresenterFactory
    public function getPresenterFactory()
    {
        return $this->presenterFactory;
    }

Usage Example

Example #1
0
 public function generateHtml(InvoiceEntity $invoiceEntity)
 {
     /** @var NewsletterPresenter $presenter */
     $presenter = $this->application->getPresenterFactory()->createPresenter('Cms:Admin:Invoices');
     $presenter->autoCanonicalize = FALSE;
     $request = new \Nette\Application\Request('Cms:Admin:Invoices', 'GET', array('table-table-actions-show-item' => $invoiceEntity->id, 'do' => 'table-table-actions-show-click'));
     $response = $presenter->run($request);
     return (string) $response->getSource();
 }
All Usage Examples Of Nette\Application\Application::getPresenterFactory