Page 1 of 1

Delegate Classes on IIS

PostPosted: Mon Feb 22, 2010 10:55 am
by sheriff_deadeye
I am in the process of developing our first xataface application and looking to build a quick Delegate Class. Using the example code, i created a php file within the table folder as:

<?
class tables_Program {

function getTitle(&$record){
return $record->val('ProgramName').' Program';
}
}

?>

when accessing this table, the following is the only thing displayed on the page:

val('ProgramName').' Program'; } } ?>

No other data is displayed on the page.

I am running on Win2k3, IIS 6, PHP 5.2.12

I'm sure i am missing something simple.

Thanks for the help.

Re: Delegate Classes on IIS

PostPosted: Mon Feb 22, 2010 11:19 am
by sheriff_deadeye
ok..problem resolved

first...had to explicitly use "<?php" instead of "<?"

and changed the class name to exactly match the table name.

sorry for the post.