02-20-2017, 11:02 PM
My $res (response from MODEL):
My Controller:
My View
{count}--- working (i see data on the site)
{unread}, {in_read} -- working too
But, all key and value in the {message} - not working (i see tags of parser on the my site)...
The TEMPLATE PARSER CLASS can not handle multi-level arrays?
I use CI 3.1.3
Sorry for my bad englsih... I'm from Ukraine...
PHP Code:
array (size=3)
'count' => int 142
'unread_dialogs' => int 2
'items' =>
array (size=2)
0 =>
array (size=4)
'unread' => int 4
'message' =>
array (size=7)
'id' => int 49329
'date' => int 1487361148
'out' => int 0
'user_id' => int 279370888
'read_state' => int 0
'title' => string ' ... ' (length=5)
'body' => string 'Але' (length=6)
'in_read' => int 42075
'out_read' => int 49328
1 =>
array (size=4)
'unread' => int 1
'message' =>
array (size=7)
'id' => int 49325
'date' => int 1487347646
'out' => int 0
'user_id' => int 19101479
'read_state' => int 0
'title' => string ' ... ' (length=5)
'body' => string 'куку' (length=8)
'in_read' => int 49307
'out_read' => int 49324
My Controller:
PHP Code:
$this->load->library('parser');
$this->parser->parse('messages', $res);
My View
PHP Code:
{count}
{items}
{in_read}
{unread}
{message}{body}{/message}
{/items}
{count}--- working (i see data on the site)
{unread}, {in_read} -- working too
But, all key and value in the {message} - not working (i see tags of parser on the my site)...
The TEMPLATE PARSER CLASS can not handle multi-level arrays?
I use CI 3.1.3
Sorry for my bad englsih... I'm from Ukraine...