OS Property support center

SOLVED !!! propertyprint.php Customisation

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
9 years 1 month ago - 9 years 1 month ago #79734 by What No Website
SOLVED !!! propertyprint.php Customisation was created by What No Website
Hi

I'm creating a new template file based on Bootstrap and everything was going well until I tried to pull property details and features out.

I get the following error:
Fatal error: Call to a member function setQuery() on a non-object in /home/XXXXXX/public_html/components/com_osproperty/helpers/layouts/propertyprint.php on line 141
Code:
$db->setQuery("Select a.* from #__osrs_amenities as a left join #__osrs_property_amenities as b on a.id = b.amen_id where a.category_id = '".$k."' and b.pro_id = '$row->id'");

Joomla & Hand Coded Web Design
What no Website
Last edit: 9 years 1 month ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
9 years 1 month ago #79735 by What No Website
Replied by What No Website on topic propertyprint.php Customisation
Whoops, fixed. Found the connector:
Code:
<?php $db = JFactory::getDbo();?>

Joomla & Hand Coded Web Design
What no Website

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan