Jump to content

include() problems


raja9911

Recommended Posts

I want to add {include file="$categoriesCell"},,,,Categoriescell is a blank tpl if the user havnt selected any department. I was thinking about adding it in the code where i have made all the lines

 

 

{section name=i loop=$departments_list->mDepartments}
        {* verify if the department is selected
           to decide what CSS style to use *}
        {if ($departments_list->mSelectedDepartment == $departments_list->mDepartments[i].department_id)}
          {assign var=class_d value="DepartmentSelected"}
          
              
        {else}
          {assign var=class_d value="DepartmentUnselected"}
        {/if}
        <table class="{$class_d}" border="0" cellpadding="0" cellspacing="0" width="100%" ><tr><td height="35" width="100%">
        {* generate a link for a new department in the list *}
        <a 
           href="{$departments_list->mDepartments[i].onclick}">
           » {$departments_list->mDepartments[i].name}
           
        </a>
  ------------------------------------------------- // i wanted to add the include file here      
       
      </td></tr>
      {/section}

 

Thanks alot

Link to comment
https://forums.phpfreaks.com/topic/54941-include-problems/#findComment-271721
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.