Extending the native model class but having problems with the constructor |
[eluser]Unknown[/eluser]
Hi there, I'm trying to extend the native model class so that it has a default method that gets all the data from the db table of the same name as the model. The problem is that any code that i put in the constructor doesn't seem to run, although i have seen examples of using the constructor in an extended native class on the web. Can anyone help? Code: class MY_Model extends Model { thanks!! jk. |
Welcome Guest, Not a member yet? Register Sign In |