From a craft matrix block how do i get the field names when no data has yet been entered?
i can write:
$o_matrix_block->getContent()->getAttributeConfigs();
this will give me an array:
Array
(
[id] => Array
(
[maxLength] => 11
[min] => -2147483648
[max] => 2147483647
[decimals] => 0
[type] => number
[unsigned] =>
[length] => 10
[column] => integer
)
[elementId] => Array
(
[maxLength] => 11
[min] => -2147483648
[max] => 2147483647
[decimals] => 0
[type] => number
[unsigned] =>
[length] => 10
[column] => integer
)
[locale] => Array
(
[column] => locale
[default] => en_gb
[type] => locale
)
[title] => Array
(
[required] =>
[maxLength] => 255
[label] => Title
[type] => string
)
but I only get the array, when I have entered data.
with out getcontent() but the array elements are wrong
Pls help!
:)