Laravel_Theme_Bundle icon indicating copy to clipboard operation
Laravel_Theme_Bundle copied to clipboard

Where do the views really live?

Open judgej opened this issue 12 years ago • 2 comments

The documentation, under "Structure of a theme" lists the various wrapper views as living in sub-directories of /public/. This does not seem right. The public assets may be in the public directories, but surely not the raw templates that are constructed as the page is rendered?

judgej avatar Apr 28 '13 23:04 judgej

Just rereading, and the structure of a theme is still eluding me.I am guessing some parts of a theme need to sit in the application and some parts in the public area. The documentation states that assets go into js/ img/ etc under public/theme, but there is no mention on how those assets are separated between themes. If I have a layout view in an admin theme ("admin" or "Admin" - no idea - used interchangeably in the docs) then how is that separated from the layout in the "my_custom_theme" theme that may be running in the same application?

judgej avatar Apr 29 '13 00:04 judgej

I have taken note of your perspective in this, and hope to get back to you soon. Usually the theme views are like wrappers but like you have said, instead of having them inside public folder, we can actually put it any other location, all we need to do is change the location where the wrapper views are taken.

raftalks avatar May 22 '13 10:05 raftalks