Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions

DOD - Odd behavior with function name same as class name


10 Posts   4146 Views


30 March 2010 at 8:19am Community Member, 712 Posts

Please read up on the difference between php5 and php4 constructor syntax, you should not use php4 constructors at all.

You should use onAfterWrite, not the object constructor.


31 March 2010 at 12:19pm Community Member, 4 Posts

I thought there is a way around it by using the same class name since I am trying to pass parameters to the constructor which was not allowing me when I used __construct() (sorry for not mentioning this earlier. I thought I could get away with using php4 constructors somehow!) as I tried using the Parent::__construct within the subclass before but it did not work for me.

Thank you Hamish and AJ.. Cheers :)