Call ob_start inside loop
I use this code to get news from xml files and process them. As I use external template for news I send each news data to template file, and concat code. Problem is that I get output from just first news. Any solution would be help full.

>   $combine = '';
>
>         for ($i = 0; $i < $times_loop; $i++) {
> 
>             $data[$i] = getXML($news[$i]);
>             $data[$i] = html_ent_decode($data[$i]);
>             $data[$i]['page'] = ucwords($page);
>             if (!empty($data[$i]['summary'])) {
>                 $data[$i]['content'] =  $data[$i]['summary'];
>             }
>             $combine .= load_template(TIDE_NEWS_TEMPLATES . 'news.tpl', $data[$i]);
>            
>         }

This is function load_template

>     function load_template($template, $data = false) {
>         ob_start();
>         require_once( $template );
>         $template = ob_get_contents();
>         ob_end_clean();
>         return $template;
>     }
Call ob_start inside loop
===

I use this code to get news from xml files and process them. As I use external template for news I send each news data to template file, and concat code. Problem is that I get output from just first news. Any solution would be help full.

>   $combine = '';
>
>         for ($i = 0; $i < $times_loop; $i++) {
> 
>             $data[$i] = getXML($news[$i]);
>             $data[$i] = html_ent_decode($data[$i]);
>             $data[$i]['page'] = ucwords($page);
>             if (!empty($data[$i]['summary'])) {
>                 $data[$i]['content'] =  $data[$i]['summary'];
>             }
>             $combine .= load_template(TIDE_NEWS_TEMPLATES . 'news.tpl', $data[$i]);
>            
>         }

This is function load_template

>     function load_template($template, $data = false) {
>         ob_start();
>         require_once( $template );
>         $template = ob_get_contents();
>         ob_end_clean();
>         return $template;
>     }