Jump to content

Problem sur utilisation SMARTY


Recommended Posts

Hi,

 

J'ai un TPL avec le code suivant :

 
{foreach Category::getChildren(11, $lang_def) as $category}
<li><a href="{$link->getCategoryLink($category.id_category)}">{$category.name}</a></li>
{/foreach}
 
Normallement cela devrait retourner un lien vers les sous catégories de la categorie 11.
 
Mais rien de tout cela, j'ai l'impression après moulte tests que le process ne rentre pas dans la boucle.
 
 

I've a tpl with code below:

 

{foreach Category::getChildren(11, $lang_def) as $category}
<li><a href="{$link->getCategoryLink($category.id_category)}">{$category.name}</a></li>
{/foreach}
 
In the normal way, it should display the link to sub categories of category 11.
But I cannot see anything even after thousand tests...
 
I think i need you ...
 
 
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...