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?
Yes, no problem. ' would escape the ', so \ stands for an escaped \ and then ' stands for itself. This is string behavior, has nothing to do with OOP.
I see. I failed to think of the backslash itself inside single quotes.
However, then the single occurrence at \App and \Mod is wrong, strictly speaking, though it doesn't hurt in this particular situation because \A and \M don't have any special meaning.
Bye,
Martin
--
Gültig sind Frauen ab 16, wohlgeformt ab 160 Pfund.
(Gunnar Bittersmann)
Selfcode: fo:) ch:{ rl:| br:< n4:( ie:| mo:| va:) de:] zu:) fl:{ ss:) ls:µ js:(
Gültig sind Frauen ab 16, wohlgeformt ab 160 Pfund.
(Gunnar Bittersmann)
Selfcode: fo:) ch:{ rl:| br:< n4:( ie:| mo:| va:) de:] zu:) fl:{ ss:) ls:µ js:(