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

[eluser]blasto333[/eluser]
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?
#2

[eluser]roj[/eluser]
Have you looked at hooks?
#3

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

[eluser]blasto333[/eluser]
[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