| Sign In/My Account | View Cart |
| Article: |
Simplify Business Logic with PHP DataObjects | |
| Subject: | DataObject super class | |
| Date: | 2004-08-06 11:55:20 | |
| From: | DarrylP | |
|
Something I didn't get a chance to include in the article was some code for a simple generic DataObject super class. Click here to see the source of a handy DataObject super class I use in my real world code.
|
||
Showing messages 1 through 3 of 3.
I like so much your article, itīs pretty cool.
But, I`m studing your DataObject super class, and Iīm found a dificult, maybe you can help me
In this line: $this->dop_className = 'DO_' . $tableName;
I create the name of a class, and in that:
$class = new ReflectionClass($this->dop_className);
Iīm using the ReflectionClass, but it isnīt function, the PHP is return the error:
Fatal error: Uncaught exception 'ReflectionException' with message 'Class dop_teste does not exist' in ...
Of course, the class doesnīt exist, but how you work with this? Can you help-me?
Thanks.