This will insert the header file at /webroot/html/includes/header.html, without parsing it by looking for Smarty specific commands. This has the benefit of speeding up the rendering of the page.
Notes about Smarty’s fetch command:
- It does not accept variables in the value of file= argument.
- You need to specify the full path of the included file.
If you liked this article, please share it on Digg, Stumble Upon or del.icio.us. Thank you.