S
S
semki0962016-06-22 12:44:49
CodeIgniter
semki096, 2016-06-22 12:44:49

How does the template engine work with an array?

I'm using a simple templating engine built into Codeigniter. It is easy to display such an array ({nav_value}{li_name}{/nav_value})

[nav_value] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [li_name] => Главная
                )

            [1] => Array
                (
                    [id] => 12
                    [li_name] => Блог
                )

        )

How to get one like this?
[all_nav] => Array
        (
            [45] => Array
                (
                    [0] => Array
                        (
                            [id] => 1
                            [li_name] => Главная

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
trevoga_su, 2016-06-22
@semki096

and don’t use any crap, so that later you don’t ask such questions
www.phpinfo.su/articles/practice/shablony_v_php.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question