Slide 44
Slide 44 text
@johndwells – GeeUp 2014
PARTIALS
1. Determine template to process based on request URI
2. Get template from database, check template access permissions, and increment the hit counter
3. If it exists, get template from file
4. If template type is static, return template and end parsing
5. Parse (as a group, so order is irrelevant): {freelancer_version}, Snippets, MSM variables, and {last_segment}
6. Parse segment variables
7. Parse embed variables
8. Parse layout variables
9. Parse date formatting string constants
10.Parse {template_edit_date}
11.Parse {current_time}
12.If present, get cached template, then skip to the advanced conditionals parsing stage
13.Parse PHP on Input
14.Parse simple conditionals: segment, embed, layout, global variables
15.Assign and parse preload_replace variables
16.Parse module and plugin tags
17.Parse PHP on Output
18.Write template to cache file
19.Parse advanced conditionals
20.Process template layouts
21.Process embedded templates
22.Process redirect variable
23.Parse user-defined global variables
24.Parse some standard global variables (separately, in order given):
25.Add CSRF tokens to forms and parse {csrf_token}
26.Parse remaining standard global variables (separately, in order given):
27.Parse alternative syntax forms of the member variables above
28.Parse path variables
…
Parse segment variables
Parse embed variables
Parse layout variables
Parse date formatting string constants
…
…
Parse advanced conditionals
Process template layouts
Process embedded templates
Process redirect variable
…
Early
Late