Delegate Classes on IIS

A place to discuss development of the Xataface core.

Delegate Classes on IIS

Postby 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
 
Posts: 11
Joined: Mon Feb 22, 2010 10:46 am

Re: Delegate Classes on IIS

Postby 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.
sheriff_deadeye
 
Posts: 11
Joined: Mon Feb 22, 2010 10:46 am


Return to Xataface Developers

Who is online

Users browsing this forum: No registered users and 12 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved