How to adapt to Kirby 3 PHP routing
See original GitHub issue👋 I am using kirby-webpack with Kirby CMS 3 now and it works great, but there is a problem with the development server.
- When i upload an image to the panel, the image does not show in the preview/thumbnail.
- I get this error when using the kirby-builder plugin
After the npm run build process and starting the build in PHP server php -S localhost:8000 kirby/router.php everything works. The images are there and even the plugin works.
So I tried to install the Kirby routing in the development server but failed.
phpServer = php({ bin: user.devServer.phpBinary || 'php', host: user.devServer.phpHost || 'localhost', root: user.paths.www, verbose: false, promptBinary: true, args, router: user.paths.kirby.core + '/router.php' // Kirby routing })
Am i missing something here? Thank you very much!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Routing | Kirby CMS
Use Kirby's router to modify URLs or provide extra functionality when the user calls an given URI pattern.
Read more >Newest 'kirby' Questions - Stack Overflow
I have a php website (based on kirby cms), and on the server i suddenly get ... How can I adapt this code...
Read more >Kirby 3: How to build a website from scratch - YouTube
Plainkit: https://github.com/getkirby/plainkit.
Read more >The Definitive PHP 7.2, 7.3, 7.4, 8.0, and 8.1 Benchmarks (2022)
We tested the performance of 14 PHP platforms (WordPress, Drupal, Laravel) on 5 ... Kirby 3.6.1.1; Flarum 1.2.0; Update to PHP 8.1 at...
Read more >d4l/kirby-static-site-generator - Packagist
Static site generator plugin for Kirby 3. ... To use this, adapt config option d4l.static_site_generator.endpoint to your needs (should be a string) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FIY @grommas, I just created a Kirby 3 branch partially based on your fork. Feel free to PR if you want to add things.
Once properly tested, this branch will be merged in the main repository.
I’m glad that you found a workaround ! Pinning this issue for later reference.