Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

parser loop problem

$
0
0
Hello friends,

PHP Code:
$data = array(
 
       'title'   => 'My Blog Title',
 
       'blog_heading' => 'My Blog Heading',
 
       'blog_entries' => array(
 
               array('title' => 'Title 1''body' => 'Body 1'),
 
               array('title' => 'Title 2''body' => 'Body 2'),
 
               array('title' => 'Title 3''body' => 'Body 3'),
 
               array('title' => 'Title 4''body' => 'Body 4'),
 
               array('title' => 'Title 5''body' => 'Body 5')
 
       )
); 


i write 

PHP Code:
{blog_entries}
     {
blog_heading}
     {
title}
{/
blog_entries

but blog_heading not writing how can i write in a loop ? blog_heading and title but main title ? 

be very hapy if you can help me 
thanks.

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>