Skip to content

Nutzung mit PHP #944

Answered by Zementaa
deleonio asked this question in Q&A
Discussion options

You must be logged in to vote

Ein Beispiel wie mithilfe von PHP eine Kolibri-Tabelle dynamisch befüllt werden kann:

<div>
	  <kol-table id="table-index" _caption="The weather is sunnier in PHP land (°F)" _data="[{}]" _headers="{}"></kol-table>
</div>
<?php

// Das $cities-Array könnte auch ein aus einer Datenbank ausgelesenes Array sein
 $cities = array(
      "berlin" => "Berlin",
      "munich" => "Munich",
      "belfast" => "Belfast",
      "cardiff" => "Cardiff",
      "edinburgh" => "Edinburgh",
      "london" => "London",
      "nyc" => "New York City",
      "la" => "Los Angeles",
      "chicago" => "Chicago"
 );

<script>
// In einem JavaScript-Abschnitt (oder in einer separaten Datei) werden die Variablen de…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by deleonio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants