Changing database table name

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 24, 2012   (RSS)

Re: [gversion] Changing database table name

By Jason - February 23, 2012

Hi Greg,

'joinTable' => 'accounts',

is a special case in the getRecords function. What it attempts to do is to match the 'createdByUserNum' field of your first table (ie listings) with the num of the accounts table. In other words, it retrieves the user account of the user that created the record. If this is what you are looking for, the functionality actually comes by default without using the joinTable option. You can access any accounts field by using the createdBy. prefix.

For example:

<?php echo $listingsRecord['createdBy.contact_name'] ?>

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Changing database table name

Hi Jason,

That's exactly what I needed to know!

Thank you very much.

Regards,
Greg