How sebo05/prvotniverzeadminu works
This is a small Nette PHP web application for browsing and publishing posts. A request enters through the web front controller, is bootstrapped and routed, then reaches a presenter that fetches or saves post data; the home page uses a facade for public posts, while detail and edit actions access the database directly. Error presenters handle client and server failures. The excerpts establish these data and routing paths; view rendering follows framework conventions, so template links are omitted rather than inferred.
Main entry points: index.php Web front controller · Bootstrap.php Application bootstrap · RouterFactory.php Request router · HomePresenter.php Post listing
Components 12
Request setup
- Web front controller
www/index.php - Application bootstrap
app/Bootstrap.php - Request router
app/Core/RouterFactory.php
Post workflows
- Post listing
app/UI/Home/HomePresenter.php - Public post query
app/Model/PostFacade.php - Post detail
app/UI/Post/PostPresenter.php - Post editor
app/UI/Edit/EditPresenter.php
Error handling
- Client error pages
app/UI/Error/Error4xx/Error4xxPresenter.php - Server error handler
app/UI/Error/Error5xx/Error5xxPresenter.php
Presentation support
- Latte extension
app/UI/Accessory/LatteExtension.php
Other components
- Web visitor
- Posts database
Connections 8
- Web visitor → Web front controller: requests
www/index.php - Web front controller → Application bootstrap: boots
www/index.php - Application bootstrap → Request router
- Request router → Post listing: routes default
app/Core/RouterFactory.php - Post listing → Public post query: queries posts
app/UI/Home/HomePresenter.php - Public post query → Posts database: reads public posts
app/Model/PostFacade.php - Post detail → Posts database: reads post
app/UI/Post/PostPresenter.php - Post editor → Posts database: reads and writes
app/UI/Edit/EditPresenter.php