Welcome Guest, Not a member yet? Register   Sign In
Questions about transferring data to parse
#2

Change your array from this:

PHP Code:
private $data = array(
 
       'title'       => 'this is a title',
 
       'keywords'    => 'this is keywords',
 
       'description' => 'this is description',
 
       'css'         => array
 
       (
 
           'test'=>'ok',
 
           'time'=>'now'
 
       )
 
   ); 
 
To this:

PHP Code:
private $data = array(
 
       'title'       => 'this is a title',
 
       'keywords'    => 'this is keywords',
 
       'description' => 'this is description',
 
       'css'         => array
 
       (
 
           array('test'=>'ok','time'=>'now')
 
       )
 
   ); 


In your template you can then loop an array by doing this
Code:
{css} // Start of the array, The parser will see it is an array
   {test} // Your keys
   {time}
{/css} // The end of your array

More info on this in the user guide
http://www.codeigniter.com/user_guide/li...able-pairs
Reply


Messages In This Thread
RE: Questions about transferring data to parse - by Martin7483 - 09-24-2015, 01:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB