Personal website written in PHP, using Smarty for templates, and a lot of home-made CSS.
For a development environment you must have the following installed;
- nginx
- PHP 8.x
- php-fpm
- composer (see)
- copy
.env.exampleto.envand replace the proper variable with your own (likeWEB_ROOTwith where you cloned this repo.) - copy
nginx.confto where your nginx configs go (and replacekate.petwith whatever domain you wish) and make sure thatfastcgi_passis using the correct socket location. - make sure you install dependencies with
composer install(in thewebfolder)
and you should be set :3
- when adding a blog post, make sure that there is a
.mdfile with the same name as the.phpfile in./web/blog_posts/- this is because
retrieveBlogPost($postId)fetches the content by fetching a file with the same name as thepostIdprovided but with the extension of.mdinstead of.php
- this is because
- when fetching stuff from the GET parameters (in
$_REQUEST), make sure to sanitize with thebasenamefunction


