#psr4 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #psr4, aggregated by home.social.
-
Conventions:
What would a #Zettelkasten #ZettelkastenBoxes theorist suggest?
Maybe not the correct theory to apply...What if I read from Right to Left ( #RTL ), like many of your acquaintances at least have considered.
Perhaps is more efficient in this circumstance to use an #RTL approach to an #LTR problem?
#PSR #autoload #PSR4 -
executed "composer dump-autoload", so the #PSR4 auotoload magic should be in place now
see: https://www.php-fig.org/psr/psr-4/
"PHP Coding Standards"PSR = Standard Rec (like W3c? )
Believe it or not i do know a thing or two
:Dhttps://wordpresscenter.net/semantic-markup-and-html/#context-related-list
#WordPress @photomatt doesn't subscribe to #PSR standards ⁂ why use it?
-
hmph. well? that's unexpected!
-
This is where I am w/ the github repo @zombiewarrior
It's really close to being "right", so to speak.
compare that to e.g.
http://statecollegeguitarlessons.com/adb/index.phpNote: my server is #LiteSpeed and i don'[t mess w/ it. But, that should not have the /public/ in the URL. If you've ever worked w/ #laravel it's like the ./index.php of the proj dir there. where there's ./index.php "reditrecting" to ./public/index.php
but you need to mod the #NGINX server {} location {} stuff for the... mod_rewrite type stuff.
i.e. the URL should be .com/giterator/ , accomplished in nginx w/ "@alias"
(sans the ./public part). you see the same thing either way. pet peeves.EDIT: ALSO! CORRECTION -do NOT see the same! ARGGH! w/out that #mod_rewrite bit #htaccess whatever!~ the #CSS #asset paths mess up as well. Prob explains the missing SVG (masthead.php) forgot about that. oh well. hey. gimme a damn break! brain damage!
SEE "new" version here, ( i can fix that path thing. i forget the quick path top of my head momentarily. i prefer to be correct instead, anyway!)
this is NOT correct! http://statecollegeguitarlessons.com/giterator/public/index.phpfirst time w/ the #namespace #php8 #composer #autoloader #PSR4 #MVC #refactoring.
i must admit, it was more challenging that i expected.
but yea. feel free to hop in there at any time, and help me polish that old turd already!
Sheesh!