Re: How to loop file includes with a path
| From: | Andrei Zmievski | Date: | Mon, 09 Apr 2001 13:51:07 +0000 |
| Subject: | Re: How to loop file includes with a path | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-515@lists.php.net to get a copy of this message | ||
On Thu, 05 Apr 2001, Holger Bahr wrote:
> oops .. This was just a typo
>
> how can i do includes like:
>
> {section name=sidebar loop=$sidebar_content}
> {include file=$sidebar_content/sidebar}
> {/section}
>
> but with providing an additional path like:
>
> {section name=sidebar loop=$sidebar_content}
> {include file="mytheme/".$sidebar_content/sidebar}
> {/section}
>
> hope you understand.
>
> my array looks like:
>
> $sidebar_content = array("sidebar" => array(001.tpl",
> "002.tpl"));
>
> and the assign:
>
> $smarty->assign($sidebar_content);
Short answer, you can't. It's not a full fledged programming language...
-Andrei
* If it ain't broken, it doesn't have enough features yet. *