Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nette-examples/flat-file-blog
📰 Simple flat-file blog using Nette and PHP 8.0
https://github.com/nette-examples/flat-file-blog
blog dependency-injection example framework nette nette-framework php template
Last synced: 26 days ago
JSON representation
📰 Simple flat-file blog using Nette and PHP 8.0
- Host: GitHub
- URL: https://github.com/nette-examples/flat-file-blog
- Owner: nette-examples
- Created: 2020-10-26T02:18:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-26T16:19:10.000Z (about 2 years ago)
- Last Synced: 2024-09-30T14:01:10.223Z (about 1 month ago)
- Topics: blog, dependency-injection, example, framework, nette, nette-framework, php, template
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 11
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nette flat-file blog example
This repository demonstrates how to use multiple modules in nette application## Run the blog
Minimum required PHP version is **8.0**
```bash
composer update
```
```bash
php -S localhost:80 -t public/
```## What can you learn?
- Automatically registering services using SearchExtension
- How to design an optimal skeleton for bigger applications
- How to create links between multiple modules
- Using a better module mapping (in /config/main.neon)
- How to use nette/forms with factories, and where to put handling logic
- Creating custom form renderer
- Neon config files can be separated and included to main file
- How to change layout and template paths (in base presenters)
- Router can be used as a service
- How to delegate model logic to keep codebase clean