Hi,
$class = '\Application\Modell\'.$table;
I'm not familiar with OOP in PHP, but the doubled backslash looks odd to me. Is that really correct? To my knowledge, it would be masking the following single quote mark, thus produce a syntax error.
Especially as you mention in your following post ...
The $class is filled with '\Application\Modell\Myclassname' correctly.
... that the resulting string has only one backslash and the correct suffix. So I assume the double backslash is what some call a "copy & paste error". In that case, I'd ask you to be precise in posting code samples. Introducing typos in re-typing or modifying the code leads to wrong or meaningless conclusions on behalf of those trying to help.
Bye,
Martin
--
"Mutti, hier steht, das Theater sucht Statisten. Was sind Statisten?" - "Das sind Leute, die nur rumstehen und nichts zu sagen haben." - "So wie Papa?"
Selfcode: fo:) ch:{ rl:| br:< n4:( ie:| mo:| va:) de:] zu:) fl:{ ss:) ls:µ js:(
"Mutti, hier steht, das Theater sucht Statisten. Was sind Statisten?" - "Das sind Leute, die nur rumstehen und nichts zu sagen haben." - "So wie Papa?"
Selfcode: fo:) ch:{ rl:| br:< n4:( ie:| mo:| va:) de:] zu:) fl:{ ss:) ls:µ js:(