A
A
alexandrnevajno12018-01-06 02:34:22
Software design
alexandrnevajno1, 2018-01-06 02:34:22

How to name a folder with JS, CSS, Images, Fonts?

Hello. I am writing an online store (trying to write). I'm new, I want to do everything right. Tell me, please, what is the name of the folder where scripts, styles, pictures and fonts will be stored. I thought to call it front-end, but I have views (I am writing a project in MVC). With php extension. Is this also front-end? And they are in my application/views folder.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
A
Anton Spirin, 2018-01-06
@rockon404

└── assets
      ├── css/
      ├── js/  
      ├── fonts/
      └── images/

T
Tortway, 2018-01-06
@Tortway

You can name whatever suits your eye. Or just copy from some RoR or other framework, so as not to invent it yourself.
For example, I like the name assets .
And views in views, everything is logical. :)

K
Kirill Nesmeyanov, 2018-01-06
@SerafimArts

Either "assets" or "dist" (if compiled sources).

A
A person from Kazakhstan, 2018-01-06
@LenovoId

it's just names, what's the difference what is the name of the folder?
maybe just apps - general or builds ... or assets in general, it makes absolutely no difference,
but first you need to know html css and then php, and in your case, neither ...
any PL and it doesn’t matter which one if it’s not processed by the browser Backend

M
Maxim Fedorov, 2018-01-06
@Maksclub

it doesn’t matter what they are called, but they should not lie in the views folder (you most likely have templates there), but lie in a public folder, in the one where the web server looks and there is an entry point

D
Danil Razumkov, 2018-01-06
@razumkov2015

i call media

V
Vadim Popov, 2018-01-06
@vadimpopov94

In my case it is like this
------- src
-------------- img
-------------- js
------- ------- css

A
Alex-1917, 2018-01-06
@alex-1917

In Bitrix:
--- template_name
------- images
------- js
------- fonts
And the style file is in the root of the template, without any folders

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question