raja9911 Posted June 10, 2007 Share Posted June 10, 2007 Hey Is it possible to include a file in a section of loop Whenever i try to include the file, it stops the loop, and just excecute the include php file Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/54941-include-problems/ Share on other sites More sharing options...
jlr2k8 Posted June 10, 2007 Share Posted June 10, 2007 Show me an example of what you're trying to do. Quote Link to comment https://forums.phpfreaks.com/topic/54941-include-problems/#findComment-271713 Share on other sites More sharing options...
raja9911 Posted June 10, 2007 Author Share Posted June 10, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/54941-include-problems/#findComment-271721 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.