diff --git a/docs/en/designers/language-builtin-functions/language-function-include-php.xml b/docs/en/designers/language-builtin-functions/language-function-include-php.xml
index 0acef7d7..473044e2 100644
--- a/docs/en/designers/language-builtin-functions/language-function-include-php.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-include-php.xml
@@ -90,36 +90,38 @@
function {include_php}
- The load_nav.php template.
+ The load_nav.php file:
query('select * from site_nav_sections order by name',SQL_ALL);
-$this->assign('sections',$sql->record);
+require_once('database.class.php');
+$db = new Db();
+$db->query('select url, name from navigation order by name');
+$this->assign('navigation', $db->getRows());
?>
]]>
- Where the teamplate is:
+ where the template is:
{$curr_section.name}
+{foreach item='nav' from=$navigation}
+ {$nav.name}
{/foreach}
]]>
See also {include},
+ $security,
+$trusted_dir,
{php}, {capture}, template resources and