我想提出一個Drupal表,擡頭drupal_theme(),並試圖按照規則,用下面的代碼構建表:Drupal的6臺主題()輸出
$data = array('value', 'values');
$header = array ($data);
$rows = array(
// Simple row
array(
'Cell 1', 'Cell 2', 'Cell 3'
),
// Row with attributes on the row and some of its cells.
array(
'data' => array('Cell 1', array('data' => 'Cell 2', 'colspan' => 2)),
'class' => 'funky'
)
);
//$output = theme('table', $header, $rows, $attributes = array(),
//$caption = NULL);
$table_t = theme_table($header, $rows, $attributes = array(), $caption = NULL);
//return $output;
return $table_t;
然而,該表沒有按」 t包含像我期望的行和列標題。怎麼了??
截圖:
此外,考慮要求對http://drupal.stackexchange.com – Watki02 2013-02-15 23:01:22
@ Watki02不挑剔,但發佈不允許跨站點,這將會是巨大的如果你可以讓別人知道他們需要舉報移民,如果他們想在另一個網站上提問:) – Clive 2013-02-15 23:12:30