Welcome Guest, Not a member yet? Register   Sign In
extend core class to have constructor input parameters.
#3

[eluser]jvicab[/eluser]
Just declare $params = null (or something like that) in the constructor. That way the $param will not be required to be specified when system scripts use the model, and your code still will benefit from passing the parameter as I assume is what you want, don't you?


Messages In This Thread
extend core class to have constructor input parameters. - by El Forum - 04-09-2012, 07:50 PM
extend core class to have constructor input parameters. - by El Forum - 04-09-2012, 10:55 PM
extend core class to have constructor input parameters. - by El Forum - 04-11-2012, 10:37 AM
extend core class to have constructor input parameters. - by El Forum - 04-11-2012, 10:44 AM
extend core class to have constructor input parameters. - by El Forum - 04-11-2012, 10:57 AM
extend core class to have constructor input parameters. - by El Forum - 04-11-2012, 11:41 AM
extend core class to have constructor input parameters. - by El Forum - 04-11-2012, 05:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB