Delegate Classes on IIS

Archived from the Xataface Developers forum.

sheriff_deadeye — Mon Feb 22, 2010 10:55 am

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.


sheriff_deadeye — Mon Feb 22, 2010 11:19 am

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.