The assembly processes

The production of a page by the compiler is performed in the ecrire/public/assembler.php file.

This file calls functions to analyse what has been requested, retrieve the modified template, translate it into PHP, and return the results of the PHP code evaluations. And do all this whilst managing the various file caches.

SPIP generally uses the recuperer_fond() function to retrieve the result of a template, but it also directly calls the assembler() function from the ecrire/public.php file.

Function call sequence

The recuperer_fond() function calls evaluer_fond() which calls inclure_page() which calls the cacher() function in the ecrire/public/cacher.php file. This is the same cacher() function which also calls assembler().

Author Mark Baber Published : Updated : 12/05/17

Translations : English, français, Nederlands