Posted: Wed Dec 06, 2006 7:32 am
Hi,
I have been having trouble with dataface. I have a few simple tables with one to many relationships. The tree works ok but the tabs give me this:
Catchable fatal error: Object of class Dataface_SkinTool could not be converted to string in C:\wamp\www\dataface\Dataface\Error.php on line 64
DF Version : 0.6.9r1
tables are as follows:
CREATE TABLE `cards` (
`card_id` int(11) NOT NULL auto_increment,
`card_name` varchar(150) NOT NULL,
`primary_borrower` varchar(100) NOT NULL,
`secondary_borrower` varchar(100) default NULL,
`phone` varchar(10) default NULL,
`mobile` varchar(10) default NULL,
`fax` varchar(10) default NULL,
`email` varchar(50) default NULL,
`address` varchar(150) NOT NULL,
`suburb` varchar(50) NOT NULL,
`post_code` char(4) NOT NULL,
PRIMARY KEY (`card_id`),
KEY `card_name` (`card_name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
CREATE TABLE `loans` (
`loan_id` int(11) NOT NULL auto_increment,
`card_id` int(11) NOT NULL,
`lender` int(11) NOT NULL,
`loan_amount` decimal(10,0) default NULL,
`property_value` decimal(10,0) NOT NULL,
`secuity` text NOT NULL,
`lender_ref` varchar(20) NOT NULL default 'Unknown',
`status` int(11) NOT NULL default '0',
`start_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
`processor` int(11) NOT NULL,
PRIMARY KEY (`loan_id`),
UNIQUE KEY `lender_ref` (`lender_ref`),
KEY `card_id` (`card_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
the relationship.ini in the cards dir:
[Loans]
loans.card_id = "$card_id"
Any help would be greatly appreciated
Regards
I have been having trouble with dataface. I have a few simple tables with one to many relationships. The tree works ok but the tabs give me this:
Catchable fatal error: Object of class Dataface_SkinTool could not be converted to string in C:\wamp\www\dataface\Dataface\Error.php on line 64
DF Version : 0.6.9r1
tables are as follows:
CREATE TABLE `cards` (
`card_id` int(11) NOT NULL auto_increment,
`card_name` varchar(150) NOT NULL,
`primary_borrower` varchar(100) NOT NULL,
`secondary_borrower` varchar(100) default NULL,
`phone` varchar(10) default NULL,
`mobile` varchar(10) default NULL,
`fax` varchar(10) default NULL,
`email` varchar(50) default NULL,
`address` varchar(150) NOT NULL,
`suburb` varchar(50) NOT NULL,
`post_code` char(4) NOT NULL,
PRIMARY KEY (`card_id`),
KEY `card_name` (`card_name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
CREATE TABLE `loans` (
`loan_id` int(11) NOT NULL auto_increment,
`card_id` int(11) NOT NULL,
`lender` int(11) NOT NULL,
`loan_amount` decimal(10,0) default NULL,
`property_value` decimal(10,0) NOT NULL,
`secuity` text NOT NULL,
`lender_ref` varchar(20) NOT NULL default 'Unknown',
`status` int(11) NOT NULL default '0',
`start_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
`processor` int(11) NOT NULL,
PRIMARY KEY (`loan_id`),
UNIQUE KEY `lender_ref` (`lender_ref`),
KEY `card_id` (`card_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
the relationship.ini in the cards dir:
[Loans]
loans.card_id = "$card_id"
Any help would be greatly appreciated
Regards