3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\Presenters; use Nette, App\Model; /** * Base presenter for all application presenters. * @author Jiřička Jakub <info@jirickajakub.cz> * @package Admin */ abstract class BasePresenter extends Nette\Application\UI\Presenter { // Import Autowired extension use \Kdyby\Autowired\AutowireProperties; use \Kdyby\Autowired\AutowireComponentFactories; // Startup function for loging public function startup() { parent::startup(); if (!$this->user->isLoggedIn()) { $this->flashMessage('Musíte být přihlášeni!', 'alert alert-danger'); $this->redirect('Sign:in', ['backlink' => $this->storeRequest()]); } } // Signout function public function handleSignOut() { $this->getUser()->logout(); $this->flashMessage('Byly jste úspěšně odhlášeni!', 'alert alert-success'); $this->redirect('Sign:in'); } }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Nette\Application\UI\Presenter" not found in /in/lotFs:13 Stack trace: #0 {main} thrown in /in/lotFs on line 13
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
26.34 ms | 405 KiB | 5 Q