K
K
kr_ilya2018-08-05 12:39:52
Handlebars
kr_ilya, 2018-08-05 12:39:52

How to use {{#each}} handlebars on json object with no name?

After sampling from the database, we have a json object, in the console it looks like this:
5b66c514dec85125304636.png
How to work with this? Or how to call it after fetching an array from the base?
Request to the database, if needed of course))

public function fetch_assoc_array($asql, $aarr)
  { 
    $array = array();
    $arr = $this->pdo->prepare($asql);
    $arr->execute($aarr);
    while($row = $arr->fetch())
        {
            $array[] = $row;
        }

        return $array;
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-08-05
@kr_ilya

{{#each this}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question