Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend Framework-Do images, mp3s, scripts, etc, just go in public folder?

I guess these are all questions that everyone must just know, because I'm not seeing this in the documentation :-D

I understand that the public folder is the folder that the world has access to.

I know it is the case with the css folder, but in migrating a traditional php website over, will my /images folder, /js folder /mp3s, etc Will those all just also be public folders that will be accessed via the layout or view.phtml pages?

Thanks!

like image 598
Joel Avatar asked Jan 26 '26 15:01

Joel


1 Answers

Yep, I believe so. That directory is the primary front-end for Apache - as dictated by your .conf settings. Index.php handles your index actions and everything else (that exists) in that directory (or below) will be referenced directly by Apache as a static file.

[ed. I'm assuming Apache as a representative of the web server world.]

like image 65
allnightgrocery Avatar answered Jan 29 '26 05:01

allnightgrocery



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!