mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix typos
This commit is contained in:
@@ -1737,7 +1737,7 @@ load_nav.php
|
|||||||
require_once("MySQL.class.php");
|
require_once("MySQL.class.php");
|
||||||
$sql = new MySQL;
|
$sql = new MySQL;
|
||||||
$sql->query("select * from site_nav_sections order by name",SQL_ALL);
|
$sql->query("select * from site_nav_sections order by name",SQL_ALL);
|
||||||
$this->assign($sections,$sql->record);
|
$this->assign('sections',$sql->record);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -1748,7 +1748,7 @@ index.tpl
|
|||||||
{* absolute path, or relative to $trusted_dir *}
|
{* absolute path, or relative to $trusted_dir *}
|
||||||
{include_php file="/path/to/load_nav.php"}
|
{include_php file="/path/to/load_nav.php"}
|
||||||
|
|
||||||
{foreach item=$curr_section from=$sections}
|
{foreach item="curr_section" from=$sections}
|
||||||
<a href="{$curr_section.url}">{$curr_section.name}</a><br>
|
<a href="{$curr_section.url}">{$curr_section.name}</a><br>
|
||||||
{/foreach}</programlisting>
|
{/foreach}</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
Reference in New Issue
Block a user