Welcome Guest, Not a member yet? Register   Sign In
Auto require_once abstract model

I have an abstract model that I cannot autoload (Because abstract classes cannot be instantiated). I would like to automatically call require_once for this model, so I don't have to do this at the top of every model that requires it.

Is this possible?

Have you looked at hooks?

[eluser]Colin Williams[/eluser]
Why not just do it in index.php, or would that cause problems?

[quote author="roj" date="1224565350"]Have you looked at hooks?[/quote]

Yes, I have looked at hooks, but I think for readability it makes sense to just do a require_once

Theme © iAndrew 2016 - Forum software by © MyBB