Jump to content
Sign in to follow this  
Kiiks

include file ne fonctionne pas

Recommended Posts

Bonjour à tous,

 

Je tente d'ajouter un lien sur la page category.php selon le id_category mais lorsque j'inclus mon fichier avec {include file="$tpl_dir./cv.tpl"}, le code ne fonctionne pas.. Ma condition dansla page ne récupère pas le $active de mon fichier tpl.... Quelqu'un a une idée ?

 

{if isset($category)}

{if $category->id AND $category->active}

<h1>{strip}

{$category->name|escape:'htmlall':'UTF-8'}

<span>

{if $category->id == 1 OR $nb_products == 0}{l s='There are no products.'}

{else}

{if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if}

{$nb_products}

{if $nb_products == 1}{l s='product.'}{else}{l s='products. ' }{/if}

{if $active == 1}{l s='Voir le CV'}{else}{l s='Aucun CV pour l'instant. ' }{/if}

Share this post


Link to post
Share on other sites

Petite note.. Même si j'ajuste mon fichier .tpl et inscrit uniquement $active=1 , Il reconnait toujours la valeur de $active comme étant 0.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More