From 418c0aab69a72da512646541be2d88a866cb9fdb Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 8 Nov 2008 07:48:36 +0000 Subject: Create permanent owner_id column in the item table, and use a soft relationship to bind the two. To do this, I overrode __get in Item_Model so that $item->owner returns the appropriate User_Model. --- modules/info/views/info_block.html.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/info/views') diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index 543ce3db..3fa9350f 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -2,21 +2,23 @@ - + - + - + + owner): ?> - - + + +
Title: title; ?>
Description: description; ?>
Name: name; ?>
Owner:user_id) ? $item->user->name : "anonymous"?>owner->name ?>
more \/ -- cgit v1.2.3