Template files · Question 9 of 12

Which variables are available in a partial?

1 answer is correct. Medium

Show answer

Answer

  • A Only those passed via arguments

Explanation

Partials are self-contained: they only see what f:render passes via arguments, all variables if needed with {_all}. Layouts, in contrast, see all variables of the template.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications