Having an issue with logically structuring my code due to the complexity.
<?php
...
//looping through the 100 items
for($i=0;$i<100;$i++)
{
// getting the current post item id
$id = $_POST['item'.$i.''];
// selecting the item and showing the title
$body .= '{exp:channel:entries channel="products" entry_id="{current_id}"}{title}{/exp:channel:entries}';//'{embed="email/product_title" entry_id="2343"}';
}
...
?>Problem 1 If PHP inward than I’m getting the post variable but code doesn’t work
Probelm 2 If PHP output than the Post variable is not recorder due to the parsing order
Problem 3 If I’m trying to embed another template it just outputs the string as it is.”{embed="template/page"}”
Will really appreciate if someone can show me the right direction
I saw few posts:
http://loweblog.com/downloads/ee-parse-order.pdf
http://ellislab.com/forums/viewthread/220736/
but I believe it cannot be done in my template since I’m running php with loop.
Thanx.