Snippets within Document - does Snippets use his own controller?


#1

Hello everybody, i´ve a small understanding problem in my current project (use pimcore the first time in a project).

I can define documents, and assign them controller, action and templates - that´s clear so far.

But i can define “Snippets” - looks like document, i can assign them the same (controller, action, template).

Within a document i can use a the “Snippet Editable”.

Am i right, that the snippet is rendered from his own defined controller and only the result ist used within the document with the editable?

Regards, Michael


#2

Yes, that’s correct.
If you have a look at the Symfony profiler you can see in the request/response tab, that the snippet is rendered within a Sub-Request: