How to display column names in the view?

$oCat->oxcategories_oxtitle->value

The above code displays the values of the oxtitle column of category table.

I want to display all the column names which are existing in the oxcategories table. how would I do that?
I tried writing $oCat->oxcategories->value but this won’t work. Is there any syntax for displaying all the columns of a table ?

Maybe you could try:

$oCat->getFieldNames()

I tried doing that and now I get the output in the array form in each select box

Then you should debug (var_dump) which field of those arrays you need to access, to get the real fieldname.

Example:


var_dump( $aArray ); // native PHP function
dumpVar( $aArray ); // OXID function for better readability

[QUOTE=KaiNeuwerth;164242]Then you should debug (var_dump) which field of those arrays you need to access, to get the real fieldname.

Example:


var_dump( $aArray ); // native PHP function
dumpVar( $aArray ); // OXID function for better readability

[/QUOTE]
Thank you so much it helped me in solving my problem :slight_smile:

thank you, i had the same issue btw