5096 Posts in 1518 Topics by 1115 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1671 Views |
-
Extension Class and overriding a method

27 February 2010 at 9:05am
Hello,
I would like to know if it's possible to override a method with an Extension Class ?
I would like to change the return value of a method. This method is a cms class (AssetAdmin::getTreeAsUL() exactly).
Thanks, -
Re: Extension Class and overriding a method

27 February 2010 at 10:07am
This may help
http://www.ssbits.com/custom-login-form-with-group-based-redirection/
It overrides the standard login procedure. It should at least give you start
-
Re: Extension Class and overriding a method

27 February 2010 at 10:55pm
Thanks.
He use object::useCustomClass() method in this tutorial to completely replace the original class. I would like to experiment another way before this solution... But i think we can't do it (overriding a method in a core class) without useCustomClass...
-
Re: Extension Class and overriding a method

27 February 2010 at 11:36pm
i try the useCustomClass() solution but it doesn't work...
I read this in the Forum. I think it's not possible to replace AssetAdmin class...
| 1671 Views | ||
|
Page:
1
|
Go to Top |


