#autoloader — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #autoloader, aggregated by home.social.
-
Believe it or not, ths is actually an improvement!
https://giterator.statecollegeguitarlessons.com/
Note, i simply made the subdomain which reminded me how to do it on this type of system. maybe? @zombiewarrior
realizing, it has been-- literally-- painful to do intense research stuff.Note: there is no ./public/ in the URL now. This helps with confidence in configuring the "Composer.json" stuff, so the #PHP #PSR4 #Autoloader will function as desired after #composer #dumpautoload (which i've yet to exectute! [ 10:42 EST ]
at least now, i can fix it, and know it will "work" on any system. basically. PHP 7+ at least. LOL
:(
-
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!