Forums

$MyRow->fieldname not working

prezia 16 May, 2012
Hello,

I downloaded the latest version of CC yesterday (I'm using Joomla 2.5).

When I try to retrieve a value from the table using the $MyRow->fieldname (under custom listing) I'm getting empty value.

This code works:

$var = '{fieldname}';


But this does not work

$var = $MyRow->fieldname;


Also, the explode() php function that I need is not working when I'm using inside the body part of the custom listing.



$var = '{arrivaldate}'; 
echo $var; //This part works. I'm getting the date.
$newarrival = explode("-",$var);
echo $newarrival[0];
echo $newarrival[1];
echo $newarrival[2];


I really appreciate if someone could help me on this. If I can solve this problem I can use CC for the rest of my project.

Thank you

Caio
GreyHead 17 May, 2012
Hi Caio,

Which version of CC did you install v2 or v4?

Bob
prezia 17 May, 2012
Hi,
I'm using V4_RC2

Thanks for you reply GreyHead.

Caio
prezia 17 May, 2012
Hi Bob,

The link you posted is not working.

Caio
GreyHead 17 May, 2012
Hi prezia,

Sorry about my typo - it's fixed now.

Bob
prezia 19 May, 2012
Thanks a lot Bob!
That worked perfectly!!
This topic is locked and no more replies can be posted.