Overriding Z Class methods in instances
This must either be a stupid FAQ, or I'm missing something. It seems you cannot overload the methods of a Z Class in an instance of that class. If you try to, you get a message that the method's id is invalid since it is already in use. If this is really the case, then how can one achieve the necessary separation between presentation and business logic? E.g. if I have a Z Class with an index_html method, all instances of that Z Class will display in exactly the same way. -- Johann
Johann Visagie wrote:
It seems you cannot overload the methods of a Z Class in an instance of that class. If you try to, you get a message that the method's id is invalid since it is already in use.
This used to be a very irritating problem. It has been fixed in 2.2.0 or 2.2.1 but I don't know how to what extent. Shane Hathaway is the man to ask ;-) cheers, Chris PS: A guide to the new overriding interface and how to use it (including in ZClasses) would be cool :-)
Chris Withers on 2000-08-31 (Thu) at 12:38:17 +0100:
This used to be a very irritating problem. It has been fixed in 2.2.0 or 2.2.1 but I don't know how to what extent. Shane Hathaway is the man to ask ;-)
Well, I experience the problem with 2.2.1 so if there is a way to do it, it involves some magic I'm not aware of. :-)
PS: A guide to the new overriding interface and how to use it (including in ZClasses) would be cool :-)
Awaiting enlightenment, -- Johann
participants (2)
-
Chris Withers -
Johann Visagie