Page 1 of 1
Posted:
Tue Apr 11, 2006 1:07 pm
by zopemgr
While trying to implement Delegate Classes, I receive the following:
Fatal error: Cannot instantiate non-existent class: tables_employee in /usr/src/dataface/Dataface/Table.php on line 662
The /tables/employee/employee.php file has the following contents:
The "<" and "?" are properly placed together no space on the first line but will not print here.
Posted:
Tue Apr 11, 2006 1:37 pm
by shannah
The name of the class should be 'tables_employee' and not 'tables_Program'. The delegate class takes on the name of the table for which it is delegate.
Hope this helps.
Posted:
Tue Apr 11, 2006 2:05 pm
by rhumbfish
Yikes, ok I am a bonehead for missing that one. Your solution helps but now I get the following at the top of the output page:
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/data-dist/webmail/admiral/tables/employee/employee.php:13) in /usr/src/dataface/Dataface/TableView.php on line 480
In other words, this message shows up where the Title should be.
Posted:
Tue Apr 11, 2006 2:52 pm
by shannah
This error indicates that there must be some white space after the last ?> tag in your delegate class file. You cannot even have a return after it.
If your text editor still makes it appear that there is no white space at the end, then the text editor must be adding and suppressing some hidden characters. Let me know if it still gives you problems.
-Steve
Posted:
Tue Apr 11, 2006 3:09 pm
by zopemgr
Done. I was using vi and mistakenly put a CR at the end. :-/
Many many thanks!